[pitivi/ges: 128/287] Add to string to check if we have "text" in the stream caps.



commit 08c7b72473ea8bb894bba8ed5c8d1a0d0fc11788
Author: Mathieu Duponchelle <seeed laposte net>
Date:   Sat Dec 24 20:28:17 2011 +0100

    Add to string to check if we have "text" in the stream caps.

 pitivi/ui/common.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/common.py b/pitivi/ui/common.py
index 23e34ae..a88c2cc 100644
--- a/pitivi/ui/common.py
+++ b/pitivi/ui/common.py
@@ -135,7 +135,7 @@ def beautify_stream(stream):
             templ = templ % (par * stream.get_width(), stream.get_height())
         return templ
     elif type(stream) == gst.pbutils.DiscovererStreamInfo and\
-             "text" in  stream.get_caps():
+             "text" in  stream.get_caps().to_string():
         return _("Subtitles")
     raise NotImplementedError
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]