Changeset 29d8a0ba4bc86259c74aed7582a99472b97da16c

Show
Ignore:
Timestamp:
05/10/08 12:50:00 (6 days ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1210416600 +0200
git-parent:

[cdd517525b71b7b5390bfff52db183b09b00f7fe]

git-author:
Rafaël Carré <funman@videolan.org> 1210416600 +0200
Message:

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

Fix #1566

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/dbus.c

    r27d483e r29d8a0b  
    316316    REPLY_INIT; 
    317317    playlist_t *p_playlist = pl_Yield( (vlc_object_t*) p_this ); 
    318     playlist_Play( p_playlist ); 
     318 
     319    PL_LOCK; 
     320    input_thread_t *p_input = p_playlist->p_input; 
     321    if( p_input ) 
     322        vlc_object_yield( p_input ); 
     323    PL_UNLOCK; 
     324 
     325    if( p_input ) 
     326    { 
     327        double i_pos = 0; 
     328        input_Control( p_input, INPUT_SET_POSITION, i_pos ); 
     329        vlc_object_release( p_input ); 
     330    } 
     331    else 
     332        playlist_Play( p_playlist ); 
     333 
    319334    pl_Release( p_playlist ); 
    320335    REPLY_SEND;