media_player: do not wait for input to stop when pausing (fixes #11767)
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 15 Aug 2014 18:47:44 +0000 (21:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 15 Aug 2014 18:47:44 +0000 (21:47 +0300)
This lead to a deadlock when attempting to pause an input that did not
support pausing.

lib/media_player.c

index 7201a78..c2bb7c2 100644 (file)
@@ -903,7 +903,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