fixed vlc.py not working

This commit is contained in:
Andreas Preikschat 2013-03-26 21:19:19 +01:00
parent 4f46e578e1
commit 7790442240

View File

@ -3422,7 +3422,7 @@ def libvlc_media_new_path(p_instance, path):
f = _Cfunctions.get('libvlc_media_new_path', None) or \
_Cfunction('libvlc_media_new_path', ((1,), (1,),), class_result(Media),
ctypes.c_void_p, Instance, ctypes.c_char_p)
return f(p_instance, path)
return f(p_instance, str_to_bytes(path))
def libvlc_media_new_fd(p_instance, fd):
'''Create a media for an already open file descriptor.