Commit 29d8a0ba authored by Rafaël Carré's avatar Rafaël Carré

DBus: Play rewinds at the beginning if there is an active input

Fix #1566
parent cdd51752
...@@ -315,7 +315,22 @@ DBUS_METHOD( Play ) ...@@ -315,7 +315,22 @@ DBUS_METHOD( Play )
{ {
REPLY_INIT; REPLY_INIT;
playlist_t *p_playlist = pl_Yield( (vlc_object_t*) p_this ); playlist_t *p_playlist = pl_Yield( (vlc_object_t*) p_this );
PL_LOCK;
input_thread_t *p_input = p_playlist->p_input;
if( p_input )
vlc_object_yield( p_input );
PL_UNLOCK;
if( p_input )
{
double i_pos = 0;
input_Control( p_input, INPUT_SET_POSITION, i_pos );
vlc_object_release( p_input );
}
else
playlist_Play( p_playlist ); playlist_Play( p_playlist );
pl_Release( p_playlist ); pl_Release( p_playlist );
REPLY_SEND; REPLY_SEND;
} }
......
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