[vlc-devel] commit: VLC: start the playlist at start ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jun 4 18:49:28 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jun  4 19:43:25 2008 +0300| [4d50cccae6bd757cfc3db77f515827a8c94dac21]

VLC: start the playlist at start

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d50cccae6bd757cfc3db77f515827a8c94dac21
---

 src/vlc.c    |    1 +
 src/winvlc.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/vlc.c b/src/vlc.c
index 12833b7..3f17c3a 100644
--- a/src/vlc.c
+++ b/src/vlc.c
@@ -127,6 +127,7 @@ int main( int i_argc, const char *ppsz_argv[] )
     {
         libvlc_add_intf (vlc, "signals", NULL);
         libvlc_add_intf (vlc, NULL, &ex);
+        libvlc_playlist_play (vlc, -1, 0, NULL, NULL);
         libvlc_wait (vlc);
         libvlc_release (vlc);
     }
diff --git a/src/winvlc.c b/src/winvlc.c
index e7aae93..4925917 100644
--- a/src/winvlc.c
+++ b/src/winvlc.c
@@ -111,6 +111,7 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
     if (vlc != NULL)
     {
         libvlc_add_intf (vlc, NULL, &ex);
+        libvlc_playlist_play (vlc, -1, 0, NULL, NULL);
         libvlc_wait (vlc);
         libvlc_release (vlc);
     }




More information about the vlc-devel mailing list