Commit 15b0e318 authored by Jean-Paul Saman's avatar Jean-Paul Saman

rc: add missing playlist_Lock()/playlist_Unlock() for playlist_Status().

parent d83d614c
...@@ -990,8 +990,9 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd, ...@@ -990,8 +990,9 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE ); p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input ) if( p_input )
{ {
p_playlist = pl_Hold( p_input );
char cmd[6]; char cmd[6];
p_playlist = pl_Hold( p_input );
playlist_Lock( p_playlist );
switch( playlist_Status( p_playlist ) ) switch( playlist_Status( p_playlist ) )
{ {
case PLAYLIST_STOPPED: case PLAYLIST_STOPPED:
...@@ -1006,6 +1007,7 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1006,6 +1007,7 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
default: default:
cmd[0] = '\0'; cmd[0] = '\0';
} /* var_GetInteger( p_input, "state" ) */ } /* var_GetInteger( p_input, "state" ) */
playlist_Unlock( p_playlist );
msg_rc( STATUS_CHANGE "( %s state: %d ): %s", msg_rc( STATUS_CHANGE "( %s state: %d ): %s",
cmd, newval.i_int, cmd, newval.i_int,
ppsz_input_state[ newval.i_int ] ); ppsz_input_state[ newval.i_int ] );
......
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