Commit f06d45e8 authored by Clément Stenac's avatar Clément Stenac

If passed ?control=play without any item, just ask playlist to play

parent 422a942c
......@@ -188,6 +188,13 @@ void MacroDo( httpd_file_sys_t *p_args,
E_(ExtractURIValue)( p_request, "item", item, 512 );
i_item = atoi( item );
/* id = 0 : simply ask playlist to play */
if( i_item == 0 )
{
playlist_Play( p_sys->p_playlist );
msg_Dbg( p_intf, "requested playlist play" );
break;
}
playlist_Control( p_sys->p_playlist, PLAYLIST_ITEMPLAY,
playlist_ItemGetById( p_sys->p_playlist,
i_item ) );
......
......@@ -314,8 +314,8 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
char value[512];
char *tmp;
E_(uri_extract_value)( url, name, value, 512 );
E_(uri_decode_url_encoded)( value );
E_(ExtractURIValue)( url, name, value, 512 );
E_(DecodeEncodedURI)( value );
tmp = E_(FromUTF8)( p_intf, value );
SSPush( st, tmp );
free( tmp );
......@@ -577,7 +577,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
else if( !strcmp( s, "vlc_seek" ) )
{
char *psz_value = SSPop( st );
E_(Seek)( p_intf, psz_value );
E_(HandleSeek)( p_intf, psz_value );
msg_Dbg( p_intf, "requested playlist seek: %s", psz_value );
free( psz_value );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment