[transmageddon] Fix errors caused by missing plugin
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Fix errors caused by missing plugin
- Date: Tue, 8 Apr 2014 09:50:50 +0000 (UTC)
commit 8540ef520fed91695f3647ea32c79348d04bc6e2
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Tue Apr 8 11:50:09 2014 +0200
Fix errors caused by missing plugin
src/transcoder_engine.py | 7 ++++---
src/transmageddon.py | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 7d31084..4c6c629 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -314,9 +314,9 @@ class Transcoder(GObject.GObject):
print("missing something")
if self.missingplugin==False: #don't think this is correct if more than one plugin installed
self.missingplugin=message
- #output=GstPbutils.missing_plugin_message_get_description(message)
- #print(output)
- # GstPbutils.missing_plugin_message_get_installer_detail(message)
+ GstPbutils.missing_plugin_message_get_description(message)
+ GstPbutils.missing_plugin_message_get_installer_detail(message)
+ self.uridecoder.set_state(Gst.State.NULL)
self.emit('missing-plugin')
elif mtype == Gst.MessageType.ASYNC_DONE:
@@ -336,6 +336,7 @@ class Transcoder(GObject.GObject):
return True
def OnDynamicPad(self, uridecodebin, src_pad):
+ print("hitting the pads")
origin = src_pad.query_caps(None)
if (self.streamdata['container']==False):
a = origin.to_string()
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 2f4581d..0b64395 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -843,7 +843,7 @@ class TransmageddonUI(Gtk.ApplicationWindow):
self.context.set_xid(self.get_window().get_xid())
GstPbutils.install_plugins_async (missing, self.context, \
self.donemessage, "NULL")
- self.on_cancelbutton_clicked("click")
+ # self.on_cancelbutton_clicked("clicked")
def donemessage(self, donemessage, null):
if donemessage == GstPbutils.InstallPluginsReturn.SUCCESS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]