mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
rtphdrext: Give "inherited" direction in set_attributes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/906>
This commit is contained in:
parent
6cd483d17a
commit
7abd83dfea
2 changed files with 8 additions and 0 deletions
|
@ -511,6 +511,13 @@ gst_rtp_header_extension_set_attributes_from_caps (GstRTPHeaderExtension * ext,
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* If the caps don't include directions, use the ones that were
|
||||
* previously set by the application.
|
||||
*/
|
||||
if (direction == GST_RTP_HEADER_EXTENSION_DIRECTION_DEFAULT &&
|
||||
priv->direction & GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED)
|
||||
direction = priv->direction;
|
||||
|
||||
if (klass->set_attributes)
|
||||
ret = klass->set_attributes (ext, direction, attributes);
|
||||
else
|
||||
|
|
|
@ -176,6 +176,7 @@ struct _GstRTPHeaderExtension
|
|||
*
|
||||
* Since: 1.20
|
||||
*/
|
||||
|
||||
struct _GstRTPHeaderExtensionClass
|
||||
{
|
||||
GstElementClass parent_class;
|
||||
|
|
Loading…
Reference in a new issue