From aa2f9401c2772fcc21258f1cd84a19732972b2ae Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 10 Jul 2014 21:27:49 +0530 Subject: encode: Explicitly ignore subtitle streams Trying to request a pad for them from encodebin causes a pipeline stall --- src/encode.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/encode.c b/src/encode.c index a57c8a9..1eb77d9 100644 --- a/src/encode.c +++ b/src/encode.c @@ -41,7 +41,12 @@ on_decodebin_pad_added (GstElement *decodebin, caps = gst_pad_query_caps (srcpad, NULL); name = gst_caps_to_string (caps); - /* FIXME: We don't try to fetch a compatible pad for raw audio because + /* BUG: We need to ignore subtitle streams. Trying to request + * a pad for this from encodebin causes a pipeline stall. */ + if (g_str_has_prefix (name, "text/x-raw")) + goto out; + + /* BUG: We don't try to fetch a compatible pad for raw audio because * that somehow always fails to link. Transmageddon does the same. */ if (!g_str_has_prefix (name, "audio/x-raw")) /* If we successfully requested a compatible sink pad in -- cgit v0.11.2-2-gd1dd