[pitivi/ges: 101/287] Silly workaround to restore import of all my videos.
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 101/287] Silly workaround to restore import of all my videos.
- Date: Thu, 15 Mar 2012 16:34:18 +0000 (UTC)
commit da3cd47229d5080f0e1dea0c231b7d9cd2c95e8a
Author: Mathieu Duponchelle <seeed laposte net>
Date: Fri Dec 23 00:44:14 2011 +0100
Silly workaround to restore import of all my videos.
pitivi/ui/common.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/common.py b/pitivi/ui/common.py
index 976fd5f..838d587 100644
--- a/pitivi/ui/common.py
+++ b/pitivi/ui/common.py
@@ -93,7 +93,7 @@ def unpack_cairo_gradient(value):
def beautify_info(info):
- ranks = {gst.pbutils.DiscovererVideoInfo: 0, gst.pbutils.DiscovererAudioInfo: 1}
+ ranks = {gst.pbutils.DiscovererVideoInfo: 0, gst.pbutils.DiscovererAudioInfo: 1, gst.pbutils.DiscovererStreamInfo: 2}
def stream_sort_key(stream):
return ranks[type(stream)]
@@ -126,7 +126,10 @@ def beautify_stream(stream):
templ = _(u"<b>Image:</b> %dÃ%d <i>pixels</i>")
templ = templ % (par * stream.get_height(), stream.get_height())
return templ
-
+ #FIXME : lol I have absolutely no clue what I'm doing !
+ elif type(stream) == gst.pbutils.DiscovererStreamInfo:
+ print stream.get_caps()
+ return "And we have subtitles :)"
raise NotImplementedError
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]