mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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
This commit is contained in:
parent
56e273bc21
commit
e9a795fa8b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue