Explorar o código

VLCMediaListPlayer: change pause behavior

The pause method is not toggling the pause state anymore. This fixes possible
inconsistencies when the input is paused from an other thread.
Thomas Guillem %!s(int64=7) %!d(string=hai) anos
pai
achega
9df762aeda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCMediaListPlayer.m

+ 1 - 1
Sources/VLCMediaListPlayer.m

@@ -150,7 +150,7 @@
         [self performSelectorInBackground:@selector(pause) withObject:nil];
         return;
     }
-    libvlc_media_list_player_pause(instance);
+    libvlc_media_list_player_set_pause(instance, 1);
 }
 
 - (void)stop