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

Discuss your Lua playlist, album art and interface scripts.
Voideka
New Cone
New Cone
Posts: 4
Joined: 05 Nov 2014 09:00

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

Postby Voideka » 19 Sep 2015 23:59

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

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

Postby mederi » 20 Sep 2015 14:21

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

147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

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

Postby 147852369 » 28 Sep 2015 17:46

Try a sleep between the functions. I can imagine that moving the file takes more time...?


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 14 guests