]> git.sesse.net Git - vlc/blobdiff - modules/control/http/rpn.c
Input access locking, part 3 (final).
[vlc] / modules / control / http / rpn.c
index dc393e654cf169cc82ff65104190e85b6db6f261..389fd1d7297958584d380f1b4cfbf83024c56d24 100644 (file)
@@ -848,7 +848,8 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t  *vars,
 
             p_input = E_(MRLParse)( p_intf, mrl, psz_name );
 
-            if( !p_input || !p_input->psz_uri || !*p_input->psz_uri )
+            char *psz_uri = input_item_GetURI( p_input );
+            if( !p_input || !psz_uri || !*psz_uri )
             {
                 i_ret = VLC_EGENERIC;
                 msg_Dbg( p_intf, "invalid requested mrl: %s", mrl );
@@ -860,6 +861,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t  *vars,
                                    VLC_FALSE);
                 msg_Dbg( p_intf, "requested mrl add: %s", mrl );
             }
+            free( psz_uri );
             E_(SSPushN)( st, i_ret );
 
             free( mrl );