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