Changeset 585:1a277e09c6b9 for src
- Timestamp:
- 12/21/14 10:20:57 (10 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/common.py
r575 r585 27 27 import gst 28 28 29 def gst_init(): 30 pass 31 29 32 def gst_element_factory_make(what): 30 33 return gst.element_factory_make(what) … … 43 46 from gi.repository import Gst as gst 44 47 48 def gst_init(): 49 gst.init() 50 45 51 def gst_element_factory_make(what): 46 52 return gst.ElementFactory.make(what) -
src/mlx/sound.py
r576 r585 182 182 import time 183 183 try: 184 from common import gst , gobject, gst_element_factory_make184 from common import gst_init, gobject, gst_element_factory_make 185 185 from common import GST_STATE_PLAYING, GST_MESSAGE_EOS 186 186 … … 191 191 """Initialize the sound handling with the given directory containing 192 192 the sound files.""" 193 gst .init()193 gst_init() 194 194 global _soundsDirectory 195 195 _soundsDirectory = soundsDirectory
Note:
See TracChangeset
for help on using the changeset viewer.