Commit 979431c0 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

rtpjitterbuffer: declare variables at the beginning of the block

It's how we roll. Fixes 'ISO C90 forbids mixed declarations and code'
compiler warning.
parent 6b2998d5
......@@ -1281,13 +1281,15 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
JBUF_LOCK_CHECK (priv, out_flushing);
if (G_UNLIKELY (priv->last_pt != pt)) {
GstCaps *caps;
GST_DEBUG_OBJECT (jitterbuffer, "pt changed from %u to %u", priv->last_pt,
pt);
priv->last_pt = pt;
/* reset clock-rate so that we get a new one */
priv->clock_rate = -1;
GstCaps *caps;
/* Try to get the clock-rate from the caps first if we can. If there are no
* caps we must fire the signal to get the clock-rate. */
if ((caps = gst_pad_get_current_caps (pad))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment