[SCM] libgroove/upstream: playlist example: fix race condition

andrewrk-guest at users.alioth.debian.org andrewrk-guest at users.alioth.debian.org
Mon Mar 17 02:20:50 UTC 2014


The following commit has been merged in the upstream branch:
commit 0a77a644e547f4c393e54b5218acb48f58fe1c60
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Sun Mar 16 19:04:49 2014 -0700

    playlist example: fix race condition

diff --git a/example/playlist.c b/example/playlist.c
index 5267e9f..debb275 100644
--- a/example/playlist.c
+++ b/example/playlist.c
@@ -26,7 +26,6 @@ int main(int argc, char * argv[]) {
     }
 
     struct GroovePlayer *player = groove_player_create();
-    groove_player_attach(player, playlist);
 
     for (int i = 1; i < argc; i += 1) {
         char *arg = argv[i];
@@ -49,6 +48,7 @@ int main(int argc, char * argv[]) {
             groove_playlist_insert(playlist, file, 1.0, NULL);
         }
     }
+    groove_player_attach(player, playlist);
 
     union GroovePlayerEvent event;
     struct GroovePlaylistItem *item;

-- 
libgroove packaging



More information about the pkg-multimedia-commits mailing list