[transmageddon: 4/5] Move tagsetting to work also on encoder/decoder



commit f72cd30d2d774dd391865f6545a3ab590ed7f6d1
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Mon Aug 1 14:44:50 2011 +0100

    Move tagsetting to work also on encoder/decoder

 src/transcoder_engine.py |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index c71c42e..9b66a6c 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -139,15 +139,6 @@ class Transcoder(gobject.GObject):
        self.pipeline.add(self.encodebin)
        self.encodebin.set_state(gst.STATE_PAUSED)
 
-       # Grab element from encodebin which supports tagsetter interface and set app name to Transmageddon
-       GstTagSetterType = gobject.type_from_name("GstTagSetter")
-       tag_setting_element=self.encodebin.get_by_interface(GstTagSetterType)
-       if tag_setting_element != None:
-           taglist=gst.TagList()
-           taglist[gst.TAG_APPLICATION_NAME] = "Transmageddon transcoder"
-           tag_setting_element.merge_tags(taglist, gst.TAG_MERGE_APPEND)
-
-
        if self.videopasstoggle==False:
            if self.container != False:
                self.videoflipper = gst.element_factory_make("videoflip")
@@ -375,6 +366,15 @@ class Transcoder(gobject.GObject):
                    else:
                        src_pad.link(sinkpad)
 
+       # Grab element from encodebin which supports tagsetter interface and set app name to Transmageddon
+       GstTagSetterType = gobject.type_from_name("GstTagSetter")
+       tag_setting_element=self.encodebin.get_by_interface(GstTagSetterType)
+       if tag_setting_element != None:
+           print "tag setting element is " + str(tag_setting_element)	
+           taglist=gst.TagList()
+           taglist[gst.TAG_APPLICATION_NAME] = "Transmageddon transcoder"
+           tag_setting_element.merge_tags(taglist, gst.TAG_MERGE_APPEND)
+
    def Pipeline (self, state):
        if state == ("playing"):
            self.pipeline.set_state(gst.STATE_PLAYING)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]