mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
parent
eab65e84ca
commit
fb7266884d
1 changed files with 7 additions and 0 deletions
|
@ -425,6 +425,13 @@ gst_rtp_mux_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
"setting caps %" GST_PTR_FORMAT " on src pad..", caps);
|
"setting caps %" GST_PTR_FORMAT " on src pad..", caps);
|
||||||
ret = gst_pad_set_caps (rtp_mux->srcpad, caps);
|
ret = gst_pad_set_caps (rtp_mux->srcpad, caps);
|
||||||
|
|
||||||
|
if (rtp_mux->ssrc == -1) {
|
||||||
|
if (gst_structure_has_field_typed (structure, "ssrc", G_TYPE_UINT)) {
|
||||||
|
rtp_mux->current_ssrc = g_value_get_uint
|
||||||
|
(gst_structure_get_value (structure, "ssrc"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
GST_OBJECT_LOCK (rtp_mux);
|
GST_OBJECT_LOCK (rtp_mux);
|
||||||
padpriv = gst_pad_get_element_private (pad);
|
padpriv = gst_pad_get_element_private (pad);
|
||||||
|
|
Loading…
Reference in a new issue