pyplaybin.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:pyplaybin 作者: fraca7 项目源码 文件源码
def start_glib_loop(cls):
        """
        If your program does not use the GLib loop, call this
        first. It initializes threads, GStreamer, and starts the GLib
        loop in a separate thread.
        """
        GObject.threads_init()
        Gst.init(None)

        cls.glib_loop = GObject.MainLoop()
        cls.glib_thread = threading.Thread(target=cls.glib_loop.run)
        cls.glib_thread.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号