Browse Source

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 7 years ago
parent
commit
9df762aeda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCMediaListPlayer.m

+ 1 - 1
Sources/VLCMediaListPlayer.m

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