gst/: Build fixes for gcc-2.9x (no mid-block variable declarations etc.).

Original commit message from CVS:
Patch by: Jens Granseuer  <jensgr at gmx net>
* gst/equalizer/gstiirequalizer.c:
* gst/equalizer/gstiirequalizer10bands.c:
* gst/equalizer/gstiirequalizer3bands.c:
* gst/equalizer/gstiirequalizernbands.c:
* gst/rtpmanager/async_jitter_queue.c:
(async_jitter_queue_push_sorted):
* gst/rtpmanager/gstrtpjitterbuffer.c:
(gst_rtp_jitter_buffer_chain):
* gst/switch/gstswitch.c: (gst_switch_chain):
Build fixes for gcc-2.9x (no mid-block variable declarations etc.).
Fixes #450185.
This commit is contained in:
Jens Granseuer 2007-06-22 20:23:18 +00:00 committed by Tim-Philipp Müller
parent 0c4fe985b6
commit 31571c8cb2
2 changed files with 4 additions and 2 deletions

View file

@ -396,9 +396,10 @@ gboolean
async_jitter_queue_push_sorted (AsyncJitterQueue * queue, async_jitter_queue_push_sorted (AsyncJitterQueue * queue,
gpointer data, GCompareDataFunc func, gpointer user_data) gpointer data, GCompareDataFunc func, gpointer user_data)
{ {
g_return_val_if_fail (queue != NULL, FALSE);
gboolean ret; gboolean ret;
g_return_val_if_fail (queue != NULL, FALSE);
g_mutex_lock (queue->mutex); g_mutex_lock (queue->mutex);
ret = async_jitter_queue_push_sorted_unlocked (queue, data, func, user_data); ret = async_jitter_queue_push_sorted_unlocked (queue, data, func, user_data);
g_mutex_unlock (queue->mutex); g_mutex_unlock (queue->mutex);

View file

@ -819,9 +819,10 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstBuffer * buffer)
if (priv->drop_on_latency) { if (priv->drop_on_latency) {
if (async_jitter_queue_length_ts_units_unlocked (priv->queue) >= if (async_jitter_queue_length_ts_units_unlocked (priv->queue) >=
priv->latency_ms * priv->clock_rate / 1000) { priv->latency_ms * priv->clock_rate / 1000) {
GstBuffer *old_buf;
GST_DEBUG_OBJECT (jitterbuffer, "Queue full, dropping old packet #%d", GST_DEBUG_OBJECT (jitterbuffer, "Queue full, dropping old packet #%d",
seqnum); seqnum);
GstBuffer *old_buf;
old_buf = async_jitter_queue_pop_unlocked (priv->queue); old_buf = async_jitter_queue_pop_unlocked (priv->queue);
gst_buffer_unref (old_buf); gst_buffer_unref (old_buf);