Changeset 1287a64fd67f6117b0d8374290dcbcddb763239f

Show
Ignore:
Timestamp:
05/09/08 17:00:24 (1 week ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210345224 +0300
git-parent:

[cbc120de4ceb5c1ce66bb0b794f92246d7dec0b2]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210279163 +0300
Message:

We also need to check the non "conf::" case. Oops.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.c

    ra7e8d94 r1287a64  
    231231        } 
    232232    } 
     233    /* EXPLICIT HACK (this is the legacy API anyway): 
     234     * VLC_VariableSet is only used from the browser plugins, so we 
     235     *  can pretty much assume that the input is _not_ trusted. */ 
     236    module_config_t *p_item; 
     237    p_item = config_FindConfig( VLC_OBJECT(p_libvlc), psz_var ); 
     238    if( !p_item ) 
     239        return VLC_ENOVAR; 
     240    if( !p_item->b_safe ) 
     241        return VLC_EGENERIC; 
    233242 
    234243    i_ret = var_Set( p_libvlc, psz_var, value );