[vlc-devel] commit: Pass trust flag to var_OptionParse ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Mar 17 20:11:33 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon Mar 17 21:11:15 2008 +0200| [1b9c93e80ed9fd5e531d330469a0ec934d5b64d8]

Pass trust flag to var_OptionParse

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b9c93e80ed9fd5e531d330469a0ec934d5b64d8
---

 src/input/input.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 80a8a39..d5e23bc 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -202,8 +202,10 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
 
     /* Parse input options */
     vlc_mutex_lock( &p_item->lock );
+    assert( 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], true );
+        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 */




More information about the vlc-devel mailing list