[vlc-commits] darwinvlc: move play call to minimize time for race condition

David Fuhrmann git at videolan.org
Sat Apr 11 18:31:45 CEST 2015


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 11 16:19:50 2015 +0200| [033a61377aabb172469e8edb6268f17fe37fe116] | committer: David Fuhrmann

darwinvlc: move play call to minimize time for race condition

This is still racy, but it should reduce the time between playlist
and interface start.

(cherry picked from commit b5c0fe454de96a1328751a896b42daf6ee732284)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=033a61377aabb172469e8edb6268f17fe37fe116
---

 bin/darwinvlc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/darwinvlc.c b/bin/darwinvlc.c
index fbad415..1841aca 100644
--- a/bin/darwinvlc.c
+++ b/bin/darwinvlc.c
@@ -221,10 +221,9 @@ int main( int i_argc, const char *ppsz_argv[] )
     libvlc_set_app_id (vlc, "org.VideoLAN.VLC", PACKAGE_VERSION, PACKAGE_NAME);
     libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
 
-    libvlc_playlist_play (vlc, -1, 0, NULL);
-
     libvlc_add_intf (vlc, "hotkeys,none");
 
+    libvlc_playlist_play (vlc, -1, 0, NULL);
     if (libvlc_add_intf (vlc, NULL))
         goto out;
 



More information about the vlc-commits mailing list