[transmageddon] Some changes to make transmageddon more robust to discoverer failing
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [transmageddon] Some changes to make transmageddon more robust to discoverer failing
- Date: Mon, 14 Sep 2009 16:34:10 +0000 (UTC)
commit 0e2cdd35d429e62a135bc369fa76ccf786ff406c
Author: Christian Schaller <christian schaller collabora co uk>
Date: Mon Sep 14 17:35:13 2009 +0100
Some changes to make transmageddon more robust to discoverer failing
src/transmageddon.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 14b5e1c..8c75719 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -229,6 +229,7 @@ class TransmageddonUI (gtk.glade.XML):
self.videopasstoggle=False
self.audiopasstoggle=False
self.containertoggle=False # this toggle is used to not check for encoders with pbutils
+ self.discover_done=False # lets us know that discover is finished
self.p_duration = gst.CLOCK_TIME_NONE
self.p_time = gst.FORMAT_TIME
@@ -417,6 +418,7 @@ class TransmageddonUI (gtk.glade.XML):
self.audioinformation.set_markup(''.join(('<small>', 'Audio channels: ', str(self.audiodata['audiochannels']), '</small>')))
self.audiocodec.set_markup(''.join(('<small>','Audio codec: ',
str(gst.pbutils.get_codec_description(self.audiodata['audiotype'])),'</small>')))
+ self.discover_done=True
if self.waiting_for_signal == True:
if self.containertoggle == True:
if self.container != False:
@@ -641,7 +643,8 @@ class TransmageddonUI (gtk.glade.XML):
self.codec_buttons[c].set_sensitive(True)
self.codec_buttons[self.AudioCodec].set_active(True)
self.codec_buttons[self.VideoCodec].set_active(True)
- self.check_for_passthrough(self.container)
+ if self.discover_done == True:
+ self.check_for_passthrough(self.container)
def on_presetchoice_changed(self, widget):
presetchoice = self.get_widget ("presetchoice").get_active_text ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]