[transmageddon] Remove print statements and switch to GTK call to open png handler



commit 336eb84381acdb3461eb81d83a814ae243e2765b
Author: Christian F.K. Schaller <christian schaller collabora co uk>
Date:   Wed Oct 14 16:01:00 2009 +0100

    Remove print statements and switch to GTK call to open png handler

 src/transcoder_engine.py |    3 ---
 src/transmageddon.py     |    4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 1008064..e1f4723 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -177,7 +177,6 @@ class Transcoder(gobject.GObject):
 
        # calculate number of channels
        chanmin, chanmax = preset.acodec.channels
-       print "chanmin, chanmax is " + str(chanmin) + " " + str(chanmax)
        if int(self.achannels) < int(chanmax):
            if int(self.achannels) > int(chanmin): 
                self.channels = int(self.achannels)
@@ -185,7 +184,6 @@ class Transcoder(gobject.GObject):
                self.channels = int(chanmin)
        else:
            self.channels = int(chanmax)
-       print "final self.channels is " + str(self.channels)
        # Check if rescaling is needed and calculate new video width/height keeping aspect ratio
        # Also add black borders if needed
        wmin, wmax  =  preset.vcodec.width
@@ -354,7 +352,6 @@ class Transcoder(gobject.GObject):
                                acap["rate"] = self.samplerate
                                acap["channels"] = self.channels
 
-                           print "caps is " + str(self.acaps)
                            self.acapsfilter = gst.element_factory_make("capsfilter")
                            self.acapsfilter.set_property("caps", self.acaps)
                            self.pipeline.add(self.acapsfilter)
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 0def08f..95530bb 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -738,9 +738,9 @@ class TransmageddonUI (gtk.glade.XML):
        if os.access(pngfile, os.F_OK):
            os.remove(pngfile)
        gst.DEBUG_BIN_TO_DOT_FILE (self._transcoder.pipeline, gst.DEBUG_GRAPH_SHOW_ALL, 'transmageddon-debug-graph')
-       print "The debug feature requiers Eye of GNOME (eog) and graphviz (dot) to be installed"
+       print "The debug feature requires graphviz (dot) to be installed"
        os.system("dot -Tpng -o /tmp/transmageddon-pipeline.png /tmp/transmageddon-debug-graph.dot")
-       os.system("eog /tmp/transmageddon-pipeline.png &")
+       gtk.show_uri(gtk.gdk.Screen(), "file:///tmp/transmageddon-pipeline.png", 0)
 
 if __name__ == "__main__":
         hwg = TransmageddonUI()



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