Page 1 of 1

vlc.playlist.next() Crash on Win7, need workaround

Posted: 19 Sep 2015 23:59
by Voideka
I was trying to write an extension to perform a file move operation, which works, but causes VLC to lock up and become unresponsive. I managed to distill the problem into a simple extension: http://pastebin.com/t9DqbECn . The issue arises when I call vlc.playlist.next() followed by os.execute(). In this test script, if you insert os.clock() (possibly other things, I haven't tested every function) in between the two, the hang doesn't happen. However, in a more complicated script the hang still occurs. Any idea how to get around this? I can post the full script if needed, but I've hacked apart someone else's work to make it so I didn't want to just put it up.

Re: vlc.playlist.next() Crash on Win7, need workaround

Posted: 20 Sep 2015 14:21
by mederi
As a workaround you can use the VLC Extension to create a list of items for later files move operation with a batch script.
https://forum.videolan.org/viewtopic.ph ... 20#p395929

Re: vlc.playlist.next() Crash on Win7, need workaround

Posted: 28 Sep 2015 17:46
by 147852369
Try a sleep between the functions. I can imagine that moving the file takes more time...?