diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-10 15:57:49 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-10 15:57:51 (GMT) |
commit | aa2f9401c2772fcc21258f1cd84a19732972b2ae (patch) | |
tree | 40d8203243eebc5b49e881832595192a0174eb5d /src/encode.c | |
parent | eaf400b7fdae4d51f3c7137fc959625e52a7f063 (diff) | |
download | soup-transcoding-proxy-aa2f9401c2772fcc21258f1cd84a19732972b2ae.zip soup-transcoding-proxy-aa2f9401c2772fcc21258f1cd84a19732972b2ae.tar.gz |
encode: Explicitly ignore subtitle streams
Trying to request a pad for them from encodebin causes a pipeline stall
Diffstat (limited to 'src/encode.c')
-rw-r--r-- | src/encode.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |