- else if( !strcmp( psz_cmd, "marquee" ) )
- {
- if( strlen( newval.psz_string ) > 0 )
- {
- val.psz_string = newval.psz_string;
- /* check for the playlist structure */
- vlc_object_t *p_pl =
- vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( !p_pl )
- {
- return VLC_ENOOBJ;
- }
- var_Set( p_pl, "marquee", val );
- vlc_object_release( p_pl );
- }
- vlc_object_release( p_input );
- return VLC_SUCCESS;
- }
- else if( !strcmp( psz_cmd, "marq-x" ) )
- {
- if( strlen( newval.psz_string ) > 0)
- {
- vlc_object_t *p_pl =
- vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( !p_pl )
- {
- return VLC_ENOOBJ;
- }
- val.i_int = atoi( newval.psz_string );
- var_Set( p_pl, "marq-x", val );
- vlc_object_release( p_pl );
- }
- vlc_object_release( p_input );
- return VLC_SUCCESS;
- }
- else if( !strcmp( psz_cmd, "marq-y" ) )
- {
- if( strlen( newval.psz_string ) > 0)
- {
- vlc_object_t *p_pl =
- vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( !p_pl )
- {
- return VLC_ENOOBJ;
- }
- val.i_int = atoi( newval.psz_string );
- var_Set( p_pl, "marq-y", val );
- vlc_object_release( p_pl );
- }
- vlc_object_release( p_input );
- return VLC_SUCCESS;
- }
- else if( !strcmp( psz_cmd, "marq-timeout" ) )
- {
- if( strlen( newval.psz_string ) > 0)
- {
- vlc_object_t *p_pl =
- vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if( !p_pl )
- {
- return VLC_ENOOBJ;
- }
- val.i_int = atoi( newval.psz_string );
- var_Set( p_pl, "marq-timeout", val );
- vlc_object_release( p_pl );
- }
- vlc_object_release( p_input );
- return VLC_SUCCESS;
- }
-