[gst-cvs] gst-plugins-bad: rtpmux: update the current_ssrc from the caps

Wim Taymans wtay at kemper.freedesktop.org
Wed Dec 9 06:09:23 PST 2009


Module: gst-plugins-bad
Branch: master
Commit: 397da3535019669ebc28398f4a23153dc59a8c24
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=397da3535019669ebc28398f4a23153dc59a8c24

Author: unknown <havard.graff at .eu.tandberg.int>
Date:   Wed Nov 18 16:38:33 2009 +0100

rtpmux: update the current_ssrc from the caps

Fixes #604101

---

 gst/rtpmux/gstrtpmux.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 21d0321..7785889 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/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);





More information about the Gstreamer-commits mailing list