gst1: gi.require_version() GstPbutils before importing it
This commit is contained in:
parent
3cf8cdb3d9
commit
1c4b36f66a
@ -6,6 +6,7 @@ import threading
|
|||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Gst', '1.0')
|
gi.require_version('Gst', '1.0')
|
||||||
|
gi.require_version('GstPbutils', '1.0')
|
||||||
from gi.repository import GObject, Gst, GstPbutils
|
from gi.repository import GObject, Gst, GstPbutils
|
||||||
Gst.is_initialized() or Gst.init()
|
Gst.is_initialized() or Gst.init()
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import time
|
|||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Gst', '1.0')
|
gi.require_version('Gst', '1.0')
|
||||||
|
gi.require_version('GstPbutils', '1.0')
|
||||||
from gi.repository import Gst, GstPbutils
|
from gi.repository import Gst, GstPbutils
|
||||||
Gst.is_initialized() or Gst.init()
|
Gst.is_initialized() or Gst.init()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user