[pitivi] stream: Detect subpicture/* as TextStream(s)



commit 2a6eb078dde64908ead171f1938d916f7ac3c6aa
Author: Edward Hervey <bilboed bilboed com>
Date:   Tue Feb 9 16:48:14 2010 +0100

    stream: Detect subpicture/* as TextStream(s)
    
    Fixes #609426

 pitivi/stream.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/stream.py b/pitivi/stream.py
index 5b3aa1d..2e476d0 100644
--- a/pitivi/stream.py
+++ b/pitivi/stream.py
@@ -340,11 +340,12 @@ def get_stream_for_caps(caps, pad=None):
         ret = VideoStream(caps, pad_name, stream_type == 'image')
     elif stream_type == 'audio':
         ret = AudioStream(caps, pad_name)
-    elif stream_type == 'text':
+    elif stream_type in ('text', 'subpicture'):
         ret = TextStream(caps, pad_name)
     return ret
 
 def get_stream_for_pad(pad):
+    log.debug("stream", "pad:%r")
     caps = pad.props.caps
     if caps is None:
         caps = pad.get_caps()



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