如何避免 libVLC 在调用 self.stop() 时抛出分段错误
我正在使用 libVLC 和 wxPython 从 YouTube 流式传输视频。播放和暂停视频效果很好,但是当我尝试使用 self.player.stop() 停止视频时,程序段出现错误。使用 self.Media.release() 时我也遇到这个问题。我尝试在 32 位模式下运行 Python,但这没有帮助。
发生这种情况时,我会收到两条消息。有时堆栈会读取“分段错误:11”,有时会读取“总线错误:10”。
停止本地视频时也会发生分段错误。
如何解决此问题以便停止播放视频?
顺便说一下,我通读了这个问题,但没有没有帮助。 media_player_new() 对我来说效果很好。
I'm using libVLC with wxPython to stream videos from YouTube. Playing and pausing the videos works well but when I try to stop the video using self.player.stop(), the program seg faults. I also get this problem when using self.Media.release(). I tried running Python in 32 bit mode but that didn't help.
There are two messages that I receive when this happens. Sometimes the stack reads "Segmentation fault: 11" and other times it read "Bus error: 10"
The seg fault also occurs when stopping local videos as well.
How do I fix this so that I can stop videos?
By the way, I read through this question but that didn't help. media_player_new() works fine for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论