VLC python binding causes crash

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
ericaro
New Cone
New Cone
Posts: 6
Joined: 23 Oct 2008 16:23

VLC python binding causes crash

Postby ericaro » 31 Oct 2008 21:48

hi,

I'm using the VLC python binding on windows XP (last vlc version, and python 2.5)

this "simple code" causes a python crash

Code: Select all

import pyvlc import pyvlc.vlc import pyvlc.plugins import os def init_player(): vlcpath = os.path.abspath(os.path.dirname(pyvlc.__file__)) plugin_path= os.path.abspath(os.path.dirname(pyvlc.plugins.__file__)) cwd = os.getcwd() os.chdir(vlcpath) player=pyvlc.vlc.MediaControl(["--plugin-path=%s"%plugin_path] ) os.chdir(cwd) return player show1 = r"test1.avi" show2 = r"test2.avi" player = init_player() player.set_mrl(show1) player.start(0) import time time.sleep(10) player.stop(0) player.set_mrl(show2) player.start(0) print "player started" time.sleep(10) #here there is a python crash !

I've trying everything I can imagine, like exiting the player an rebuilding another one, like resuming, instead of start...
No way, I can't just play one movie, once.

even in the sample VideoPlayer, in the source of python binding does the same :
1/ play any movie
2/ press stop
3/ press start again

Does anyone has any idea ?
the crash happens in the ntdll.dll module

Any ideas ?


thank you

OlivierAubert
Developer
Developer
Posts: 92
Joined: 08 Mar 2007 15:43

Re: VLC python binding causes crash

Postby OlivierAubert » 07 Nov 2008 17:53

Some more details (like log messages or a stack trace) would be helpful.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests