[pitivi] gtkcompat: Overide a few GES methods
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] gtkcompat: Overide a few GES methods
- Date: Sun, 2 Sep 2012 03:57:28 +0000 (UTC)
commit 3f17b7f1ee58a614e970a0024014a5a52d431fc3
Author: Thibault Saunier <thibault saunier collabora com>
Date: Tue Jul 3 16:12:08 2012 -0400
gtkcompat: Overide a few GES methods
pitivi/utils/pygtkcompat.py | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/pygtkcompat.py b/pitivi/utils/pygtkcompat.py
index 4a6d0e8..6b113b7 100644
--- a/pitivi/utils/pygtkcompat.py
+++ b/pitivi/utils/pygtkcompat.py
@@ -454,8 +454,17 @@ def enable_gudev():
sys.modules['gudev'] = GUdev
-def enable_gst():
- gi.require_version('Gst', '0.10')
+def enable_ges(version='1.0'):
+ gi.require_version('GES', version)
+ from gi.repository import GES
+ sys.modules['ges'] = GES
+ GES.init()
+ GES.timeline_new_audio_video = GES.Timeline.new_audio_video
+ GES.track_audio_raw_new = GES.Track.audio_raw_new
+ GES.track_video_raw_new = GES.Track.audio_raw_new
+ GES.formatter_can_load_uri = GES.Formatter.can_load_uri
+ _install_enums(GES)
+
from gi.repository import Gst
sys.modules['gst'] = Gst
_install_enums(Gst)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]