Commit e2a4b90f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

media_player: do not wait for input to stop when pausing (fixes #11767)

This lead to a deadlock when attempting to pause an input that did not
support pausing.

(cherry picked from commit 1e68f58eb16f1d6b6bc61bfdf5748243968e0608)
parent 39daee31
......@@ -782,7 +782,7 @@ void libvlc_media_player_set_pause( libvlc_media_player_t *p_mi, int paused )
if( libvlc_media_player_can_pause( p_mi ) )
input_Control( p_input_thread, INPUT_SET_STATE, PAUSE_S );
else
libvlc_media_player_stop( p_mi );
input_Stop( p_input_thread, true );
}
}
else
......
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