From: Olivier CrĂȘte Date: Tue, 12 Aug 2008 16:41:59 +0000 (-0400) Subject: rtpmux: Store the clock-base on setcaps X-Git-Tag: 1.19.3~509^2~6258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=674c0741146c1e79879211c752882dbbf1413d75;p=platform%2Fupstream%2Fgstreamer.git rtpmux: Store the clock-base on setcaps --- diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index 7228dc8..9af27ba 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -430,6 +430,7 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps) GstStructure *structure; gboolean ret = TRUE; gint clock_rate; + GstRTPMuxPadPrivate *padpriv = gst_pad_get_element_private (pad); rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad)); @@ -441,6 +442,10 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps) if (!ret) goto out; + if (gst_structure_get_uint (structure, "clock-base", &padpriv->clock_base)) { + padpriv->have_base = TRUE; + } + caps = gst_caps_make_writable (caps); gst_caps_set_simple (caps,