gst/extend/: Fixes for thread-safety, changes in behaviour with gst.Pad and cleanup. Still has some issues.

Original commit message from CVS:
* gst/extend/jukebox.py:
* gst/extend/sources.py:
Fixes for thread-safety, changes in behaviour with gst.Pad and
cleanup. Still has some issues.
This commit is contained in:
Edward Hervey 2007-06-16 12:08:45 +00:00
parent 62714e8794
commit cef8a55b55
3 changed files with 22 additions and 12 deletions

View file

@ -1,3 +1,10 @@
2007-06-16 Edward Hervey <edward@fluendo.com>
* gst/extend/jukebox.py:
* gst/extend/sources.py:
Fixes for thread-safety, changes in behaviour with gst.Pad and
cleanup. Still has some issues.
2007-06-14 Edward Hervey <edward@fluendo.com>
* gst/__init__.py:

View file

@ -26,6 +26,7 @@ import pickle
import random as rand
import gobject
gobject.threads_init()
import pygst
pygst.require('0.10')
import gst
@ -249,6 +250,7 @@ class Jukebox(gst.Bin):
return
self.debug("Ghosting source pad %s" % pad)
self._srcpad = gst.GhostPad("src", pad)
self._srcpad.set_active(True)
self.add_pad(self._srcpad)
## gst.Bin/Element virtual methods

View file

@ -81,6 +81,7 @@ class AudioSource(gst.Bin):
pad.link(self.audioconvert.get_pad("sink"))
self._srcpad = gst.GhostPad("src", self.volume.get_pad("src"))
self._srcpad.set_active(True)
self.add_pad(self._srcpad)
def _unknown_type_cb(self, pad, caps):