summaryrefslogtreecommitdiffstats
path: root/gst/switch
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2007-06-22 20:23:18 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-06-22 20:23:18 +0000
commitf45e98fab49d63a97c82457fa32d5219b22cea07 (patch)
tree74c6d6f48c2159b441d85d8901df9966698f781c /gst/switch
parentd6627ae8e08ddf3a645d0c961970edcfc4a2a3cd (diff)
downloadgst-plugins-bad-f45e98fab49d63a97c82457fa32d5219b22cea07.tar.gz
gst-plugins-bad-f45e98fab49d63a97c82457fa32d5219b22cea07.tar.bz2
gst-plugins-bad-f45e98fab49d63a97c82457fa32d5219b22cea07.zip
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.
Diffstat (limited to 'gst/switch')
-rw-r--r--gst/switch/gstswitch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/switch/gstswitch.c b/gst/switch/gstswitch.c
index a7a20f85..5f9dd054 100644
--- a/gst/switch/gstswitch.c
+++ b/gst/switch/gstswitch.c
@@ -222,6 +222,9 @@ gst_switch_chain (GstPad * pad, GstBuffer * buf)
/* check if we need to send a new segment event */
if (gstswitch->need_to_send_newsegment && !gstswitch->queue_buffers) {
+ GstEvent *event;
+ GList *buffers;
+
/* check to see if we need to send a new segment update for stop */
if (gstswitch->previous_sinkpad != NULL) {
if (gstswitch->stop_value != GST_CLOCK_TIME_NONE) {
@@ -252,7 +255,7 @@ gst_switch_chain (GstPad * pad, GstBuffer * buf)
gstswitch->previous_sinkpad = NULL;
}
/* retrieve event from hash table */
- GstEvent *event =
+ event =
(GstEvent *) g_hash_table_lookup (gstswitch->newsegment_events, pad);
if (event) {
/* create a copy of this event so we can change start to match
@@ -285,8 +288,7 @@ gst_switch_chain (GstPad * pad, GstBuffer * buf)
gstswitch->start_value = GST_CLOCK_TIME_NONE;
gstswitch->stop_value = GST_CLOCK_TIME_NONE;
/* send all the stored buffers if any */
- GList *buffers =
- g_hash_table_lookup (gstswitch->stored_buffers, active_sinkpad);
+ buffers = g_hash_table_lookup (gstswitch->stored_buffers, active_sinkpad);
while (buffers != NULL) {
gst_buffer_ref (GST_BUFFER (buffers->data));
GST_SWITCH_UNLOCK (gstswitch);