Commit 033a6137 authored by David Fuhrmann's avatar 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: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 13c2bfc1
...@@ -221,10 +221,9 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -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_app_id (vlc, "org.VideoLAN.VLC", PACKAGE_VERSION, PACKAGE_NAME);
libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION); 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_add_intf (vlc, "hotkeys,none");
libvlc_playlist_play (vlc, -1, 0, NULL);
if (libvlc_add_intf (vlc, NULL)) if (libvlc_add_intf (vlc, NULL))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment