diff options
-rw-r--r-- | gst/rtpmux/gstrtpmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c index 7228dc8a..9af27bad 100644 --- a/gst/rtpmux/gstrtpmux.c +++ b/gst/rtpmux/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, |