libVLC function media_player_new() throws Segmentation Fault

て烟熏妆下的殇ゞ 提交于 2019-12-07 06:33:40

问题


media_player_new() throws segmentation fault.

import vlc
ins=vlc.Instance()
player=ins.media_player_new()

Here is where it crashes:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libvlc.dylib   0x000000010059aa78 libvlc_media_player_new + 24

libvlc.dylib is in the place where script is looking: /Applications/VLC.app/Contents/MacOS/lib

vlc.py can be found here: git://git.videolan.org/vlc/bindings/python.git

Any ideas why or how to debug?


回答1:


Launch Python in 32 bit modes by running export VERSIONER_PYTHON_PREFER_32_BIT=yes This is not an ideal solution, but it works for me.

Applying these patches will fix the issue for real: http://trac.videolan.org/vlc/ticket/4686



来源:https://stackoverflow.com/questions/4901669/libvlc-function-media-player-new-throws-segmentation-fault

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!