Changeset 585:1a277e09c6b9


Ignore:
Timestamp:
12/21/14 10:20:57 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the handling of the Gst library with PyGTK

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/common.py

    r575 r585  
    2727        import gst
    2828
     29        def gst_init():
     30            pass
     31
    2932        def gst_element_factory_make(what):
    3033            return gst.element_factory_make(what)
     
    4346        from gi.repository import Gst as gst
    4447
     48        def gst_init():
     49            gst.init()
     50
    4551        def gst_element_factory_make(what):
    4652            return gst.ElementFactory.make(what)
  • src/mlx/sound.py

    r576 r585  
    182182    import time
    183183    try:
    184         from common import gst, gobject, gst_element_factory_make
     184        from common import gst_init, gobject, gst_element_factory_make
    185185        from common import GST_STATE_PLAYING, GST_MESSAGE_EOS
    186186
     
    191191            """Initialize the sound handling with the given directory containing
    192192            the sound files."""
    193             gst.init()
     193            gst_init()
    194194            global _soundsDirectory
    195195            _soundsDirectory = soundsDirectory
Note: See TracChangeset for help on using the changeset viewer.