[transmageddon] Some small deprecation fixes
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Some small deprecation fixes
- Date: Tue, 11 Mar 2014 10:48:06 +0000 (UTC)
commit 5e5c7be05a939d69a5b803f42571792dda4903fc
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Tue Mar 11 11:47:41 2014 +0100
Some small deprecation fixes
src/gstfraction.py | 2 +-
src/transcoder_engine.py | 2 +-
src/transmageddon.py | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gstfraction.py b/src/gstfraction.py
index cf5c7c6..56c9e07 100644
--- a/src/gstfraction.py
+++ b/src/gstfraction.py
@@ -22,7 +22,7 @@
import sys
from gi.repository import GObject
-GObject.threads_init()
+# GObject.threads_init()
from gi.repository import GLib
class Fraction():
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index d9353fa..a12a97b 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -19,7 +19,7 @@ import os
import codecfinder
import presets
from gi.repository import GObject
-GObject.threads_init()
+# GObject.threads_init()
from gi.repository import GLib
from gi.repository import Gst
Gst.init(None)
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 9a3f874..bcdc207 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -32,7 +32,7 @@ from gi.repository import Notify
from gi.repository import GdkX11, Gdk, Gio, Gtk, GLib, Gst, GstPbutils, GstTag
from gi.repository import GUdev
from gi.repository import GObject, GdkPixbuf
-GObject.threads_init()
+# GObject.threads_init()
import transcoder_engine
from urllib.parse import urlparse
@@ -497,6 +497,7 @@ class TransmageddonUI(Gtk.ApplicationWindow):
self.presetaudiocodec=Gst.caps_from_string(preset.acodec.name)
self.audiodata[0]['outputaudiocaps']=Gst.caps_from_string(preset.acodec.name)
self.presetvideocodec=Gst.caps_from_string(preset.vcodec.name)
+
self.videodata[0]['outputvideocaps']=Gst.caps_from_string(preset.vcodec.name)
if preset.container == "application/ogg":
self.containerchoice.set_active(0)
@@ -595,7 +596,7 @@ class TransmageddonUI(Gtk.ApplicationWindow):
# for position so we can
# use it for the progressbar
def ProgressBarUpdate(self, source):
- GObject.timeout_add(500, self.Increment_Progressbar)
+ GLib.timeout_add(50, self.Increment_Progressbar)
def _on_eos(self, source):
context_id = self.StatusBar.get_context_id("EOS")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]