Browse Source

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.
pull/29/head
David Fuhrmann 12 years ago
parent
commit
b5c0fe454d
  1. 3
      bin/darwinvlc.c

3
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;

Loading…
Cancel
Save