[transmageddon] only set dvdreadproperties if actually working with dvdreadsrc
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] only set dvdreadproperties if actually working with dvdreadsrc
- Date: Sun, 28 Jul 2013 18:28:43 +0000 (UTC)
commit 5ef3f69ce0d44ff28245a8e7549008ac2b082bea
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Sat Jul 27 11:52:48 2013 +0200
only set dvdreadproperties if actually working with dvdreadsrc
src/transcoder_engine.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 3e03d85..d597f8a 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -430,12 +430,9 @@ class Transcoder(GObject.GObject):
else:
src_pad.link(self.sinkpad)
def dvdreadproperties(self, parent, element):
- print("setting DVD properties")
- print(self.streamdata['filename'])
- print(self.streamdata['dvdtitle'])
- #if self.streamdata['dvdtitle']:
- element.set_property("device", self.streamdata['filename'])
- element.set_property("title", self.streamdata['dvdtitle'])
+ if "GstDvdReadSrc" in str(element) :
+ element.set_property("device", self.streamdata['filename'])
+ element.set_property("title", self.streamdata['dvdtitle'])
def OnEncodebinElementAdd(self, encodebin, element):
factory=element.get_factory()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]