[vlc-commits] commit: Parse input specific options earlier to enable using :rate= something (Antoine Cellerier )
git version control
git at videolan.org
Tue Mar 2 23:07:46 CET 2010
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Mar 2 23:09:34 2010 +0100| [9658acc090c330151e4069066f47eae18afe149a] | committer: Antoine Cellerier
Parse input specific options earlier to enable using :rate=something
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9658acc090c330151e4069066f47eae18afe149a
---
src/input/input.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index c100110..4672cd7 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -335,6 +335,14 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
if( !p_input->p )
return NULL;
+ /* Parse input options */
+ vlc_mutex_lock( &p_item->lock );
+ assert( (int)p_item->optflagc == p_item->i_options );
+ for( i = 0; i < p_item->i_options; i++ )
+ var_OptionParse( VLC_OBJECT(p_input), p_item->ppsz_options[i],
+ !!(p_item->optflagv[i] & VLC_INPUT_OPTION_TRUSTED) );
+ vlc_mutex_unlock( &p_item->lock );
+
p_input->b_preparsing = b_quick;
p_input->psz_header = psz_header ? strdup( psz_header ) : NULL;
@@ -402,14 +410,6 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input->p->i_control = 0;
p_input->p->b_abort = false;
- /* Parse input options */
- vlc_mutex_lock( &p_item->lock );
- assert( (int)p_item->optflagc == p_item->i_options );
- for( i = 0; i < p_item->i_options; i++ )
- var_OptionParse( VLC_OBJECT(p_input), p_item->ppsz_options[i],
- !!(p_item->optflagv[i] & VLC_INPUT_OPTION_TRUSTED) );
- vlc_mutex_unlock( &p_item->lock );
-
/* Create Object Variables for private use only */
input_ConfigVarInit( p_input );
More information about the vlc-commits
mailing list