diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2016-03-04 10:14:00 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-05-15 13:18:02 +0300 |
commit | e9a795fa8bea7aee6fd15b9865744b61b22c2435 (patch) | |
tree | c529432b2f5667b1106a18ee25fb89eeabcca06c | |
parent | 56e273bc21816b1257748d4c8946353e7a82be7a (diff) |
souphttpsrc: Use audio/x-unaligned-raw instead of audio/x-raw for L16 data
Directly setting audio/x-raw caps leads to problems when the delivered
data blocks do not align properly at sample boundaries (for example, a
data block with 391 bytes). So, instead, set audio/x-unaligned-raw to
let a parser be autoplugged.
https://bugzilla.gnome.org/show_bug.cgi?id=689460
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 797f1e994..08d6cb515 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -1143,7 +1143,7 @@ gst_soup_http_src_got_headers (GstSoupHTTPSrc * src, SoupMessage * msg) if (param != NULL) rate = atol (param); - src->src_caps = gst_caps_new_simple ("audio/x-raw", + src->src_caps = gst_caps_new_simple ("audio/x-unaligned-raw", "format", G_TYPE_STRING, "S16BE", "layout", G_TYPE_STRING, "interleaved", "channels", G_TYPE_INT, channels, "rate", G_TYPE_INT, rate, NULL); |