[transmageddon] When removing video from file, make sure to check for it to avoid uneeded error messages on console
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] When removing video from file, make sure to check for it to avoid uneeded error messages on console
- Date: Sat, 15 Oct 2011 15:07:30 +0000 (UTC)
commit 6f443640ea4e0b12f62e0402ec9e0b180bd4aa2d
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Sat Oct 15 16:06:47 2011 +0100
When removing video from file, make sure to check for it to avoid
uneeded error messages on console
src/transcoder_engine.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 94a750d..27cd7c3 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -187,6 +187,7 @@ class Transcoder(gobject.GObject):
if (self.audiopasstoggle) or (self.videopasstoggle) or (self.videocaps=="novid"):
self.uridecoder.set_property("caps", self.remuxcaps)
+
self.pipeline.add(self.uridecoder)
@@ -342,10 +343,11 @@ class Transcoder(gobject.GObject):
else:
c = origin.to_string()
if not c.startswith("text/"):
- sinkpad = self.encodebin.emit("request-pad", origin)
+ if not (c.startswith("video/") and (self.audiocaps != False)):
+ sinkpad = self.encodebin.emit("request-pad", origin)
if c.startswith("audio/"):
src_pad.link(sinkpad)
- elif c.startswith("video/"):
+ elif (c.startswith("video/") and (self.videocaps != False)):
if self.videopasstoggle==False:
src_pad.link(self.deinterlacer.get_static_pad("sink"))
self.videoflipper.get_static_pad("src").link(sinkpad)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]