Procházet zdrojové kódy

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 před 7 roky
rodič
revize
9df762aeda
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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