Changeset 800:709f86ab4573 for src/mlx/common.py
- Timestamp:
- 07/29/16 08:39:59 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/common.py
r740 r800 27 27 pygobject = False 28 28 import gobject 29 try:30 import pygst31 pygst.require('0.10')32 import gst33 34 def gst_init():35 pass36 37 def gst_element_factory_make(what):38 return gst.element_factory_make(what)39 40 GST_STATE_PLAYING=gst.STATE_PLAYING41 GST_MESSAGE_EOS=gst.MESSAGE_EOS42 except:43 pass44 29 else: 45 30 print "Using PyGObject" … … 47 32 48 33 from gi.repository import GObject as gobject 49 50 try:51 from gi.repository import Gst as gst52 53 def gst_init():54 gst.init()55 56 def gst_element_factory_make(what):57 return gst.ElementFactory.make(what)58 59 GST_STATE_PLAYING=gst.State.PLAYING60 GST_MESSAGE_EOS=gst.MessageType.EOS61 except:62 import traceback63 traceback.print_exc()64 pass
Note:
See TracChangeset
for help on using the changeset viewer.