Postby thannoy » 31 Jul 2009 11:06
When starting VLC from a batch file for example, each line are executed one after the other so it is ok (when VLC closes itself, but there is vlc://quit for that)
Using another way to launch VLC, it depends the way you launch VLC. You should be able to find a way to launch it as your needs (maybe system() command in C language or other)
You can otherwise try to use either
- --pidfile filename option. VLC will write its process id into this file and you can probably check if this ID it running or not from time to time
- look at souted file and check when it stops growing or when it is accessible with fopen