projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab65e8
)
rtpmux: update the current_ssrc from the caps
author
unknown
<havard.graff@.eu.tandberg.int>
Wed, 18 Nov 2009 15:38:33 +0000
(16:38 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 16:33:47 +0000
(16:33 +0000)
Fixes #604101
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index
21d0321
..
7785889
100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/gstrtpmux.c
@@
-425,6
+425,13
@@
gst_rtp_mux_setcaps (GstPad * pad, GstCaps * caps)
"setting caps %" GST_PTR_FORMAT " on src pad..", 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) {
GST_OBJECT_LOCK (rtp_mux);
padpriv = gst_pad_get_element_private (pad);