Ignore:
Timestamp:
07/29/16 08:39:59 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed sound playback on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/common.py

    r740 r800  
    2727    pygobject = False
    2828    import gobject
    29     try:
    30         import pygst
    31         pygst.require('0.10')
    32         import gst
    33 
    34         def gst_init():
    35             pass
    36 
    37         def gst_element_factory_make(what):
    38             return gst.element_factory_make(what)
    39 
    40         GST_STATE_PLAYING=gst.STATE_PLAYING
    41         GST_MESSAGE_EOS=gst.MESSAGE_EOS
    42     except:
    43         pass
    4429else:
    4530    print "Using PyGObject"
     
    4732
    4833    from gi.repository import GObject as gobject
    49 
    50     try:
    51         from gi.repository import Gst as gst
    52 
    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.PLAYING
    60         GST_MESSAGE_EOS=gst.MessageType.EOS
    61     except:
    62         import traceback
    63         traceback.print_exc()
    64         pass
Note: See TracChangeset for help on using the changeset viewer.