mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
rtpopusdepay: assume 2 channels if sprop-stereo is missing
Fixes #1064 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2139>
This commit is contained in:
parent
746765dbc9
commit
e9e4ac0ba9
1 changed files with 4 additions and 2 deletions
|
@ -206,8 +206,10 @@ gst_rtp_opus_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
|
||||||
GST_WARNING_OBJECT (depayload, "Unknown sprop-stereo value '%s'",
|
GST_WARNING_OBJECT (depayload, "Unknown sprop-stereo value '%s'",
|
||||||
sprop_stereo);
|
sprop_stereo);
|
||||||
} else {
|
} else {
|
||||||
/* sprop-stereo defaults to mono as per RFC 7587. */
|
/* Although sprop-stereo defaults to mono as per RFC 7587, this just means
|
||||||
gst_caps_set_simple (srccaps, "channels", G_TYPE_INT, 1, NULL);
|
that the signal is likely mono and can be safely downmixed, it may
|
||||||
|
still be stereo at times. */
|
||||||
|
gst_caps_set_simple (srccaps, "channels", G_TYPE_INT, 2, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue