Page 1 of 1

VLC python binding causes crash

Posted: 31 Oct 2008 21:48
by ericaro
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

Re: VLC python binding causes crash

Posted: 07 Nov 2008 17:53
by OlivierAubert
Some more details (like log messages or a stack trace) would be helpful.