Exemplo n.º 1
0
    def _wrapUp(self, element, pad):
        """
        Ghost the given pad of element.
        Remove non-used elements.
        """

        if self._srcpad:
            return
        self._markValidElements(element)
        self._removeUnusedElements(self.typefind)
        self.log("ghosting pad %s" % pad.get_name())
        self._srcpad = gst.GhostPad("src", pad)
        self._srcpad.set_active(True)
        self.add_pad(self._srcpad)
        self.post_message(gst.message_new_state_dirty(self))
Exemplo n.º 2
0
    def _wrapUp(self, element, pad):
        """
        Ghost the given pad of element.
        Remove non-used elements.
        """

        if self._srcpad:
            return
        self._markValidElements(element)
        self._removeUnusedElements(self.typefind)
        self.log("ghosting pad %s" % pad.get_name())
        self._srcpad = gst.GhostPad("src", pad)
        self._srcpad.set_active(True)
        self.add_pad(self._srcpad)
        self.post_message(gst.message_new_state_dirty(self))
Exemplo n.º 3
0
 def _exposePad(self, target):
     self.log("ghosting pad %s" % target.get_name())
     self.add_pad(self._srcpad)
     self.post_message(gst.message_new_state_dirty(self))
Exemplo n.º 4
0
 def _exposePad(self, target):
     self.log("ghosting pad %s" % target.get_name())
     self.add_pad(self._srcpad)
     self.post_message(gst.message_new_state_dirty(self))