From: Tim-Philipp Müller Date: Fri, 29 Jul 2011 12:05:42 +0000 (+0100) Subject: pulsesink: fix variable-set-but-not-used compiler warning with older pulse versions X-Git-Tag: 1.19.3~509^2~7136^2~428 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25ace0e524e8f689431f97a9ee6b976d9b916f8d;p=platform%2Fupstream%2Fgstreamer.git pulsesink: fix variable-set-but-not-used compiler warning with older pulse versions --- diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index dc3c777..c9f0b58 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -999,18 +999,21 @@ static gboolean gst_pulseringbuffer_release (GstRingBuffer * buf) { GstPulseRingBuffer *pbuf; - GstPulseSink *psink; pbuf = GST_PULSERING_BUFFER_CAST (buf); - psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (pbuf)); pa_threaded_mainloop_lock (mainloop); gst_pulsering_destroy_stream (pbuf); pa_threaded_mainloop_unlock (mainloop); #ifdef HAVE_PULSE_1_0 - g_atomic_int_set (&psink->format_lost, FALSE); - psink->format_lost_time = GST_CLOCK_TIME_NONE; + { + GstPulseSink *psink; + + psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (pbuf)); + g_atomic_int_set (&psink->format_lost, FALSE); + psink->format_lost_time = GST_CLOCK_TIME_NONE; + } #endif return TRUE;