Commit 098cf89e authored by Robert Swain's avatar Robert Swain Committed by Tim-Philipp Müller

jpegenc: pulsesink: raw1394: Address unused but set variables

GCC 4.6.x spits warnings about such usage of variables. The variables in
raw1394 were marked with G_GNUC_UNUSED as this seemed omre appropriate.
The others were removed.
parent b5c8c770
......@@ -547,7 +547,7 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
GstJpegEnc *jpegenc;
guchar *data;
gulong size;
guint height, width;
guint height;
guchar *base[3], *end[3];
gint i, j, k;
......@@ -572,7 +572,6 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
gst_buffer_copy_metadata (jpegenc->output_buffer, buf,
GST_BUFFER_COPY_TIMESTAMPS);
width = jpegenc->width;
height = jpegenc->height;
for (i = 0; i < jpegenc->channels; i++) {
......
......@@ -941,10 +941,8 @@ connect_failed:
static gboolean
gst_pulseringbuffer_release (GstRingBuffer * buf)
{
GstPulseSink *psink;
GstPulseRingBuffer *pbuf;
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (buf));
pbuf = GST_PULSERING_BUFFER_CAST (buf);
pa_threaded_mainloop_lock (mainloop);
......@@ -957,12 +955,6 @@ gst_pulseringbuffer_release (GstRingBuffer * buf)
static void
gst_pulsering_success_cb (pa_stream * s, int success, void *userdata)
{
GstPulseRingBuffer *pbuf;
GstPulseSink *psink;
pbuf = GST_PULSERING_BUFFER_CAST (userdata);
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (pbuf));
pa_threaded_mainloop_signal (mainloop, 0);
}
......
......@@ -66,7 +66,7 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
int _res; unsigned char c; c = command; \
int G_GNUC_UNUSED _res; unsigned char c; c = command; \
_res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END
......
......@@ -62,7 +62,7 @@
#define SEND_COMMAND(src, command) \
G_STMT_START { \
int _res; unsigned char c; c = command; \
int G_GNUC_UNUSED _res; unsigned char c; c = command; \
_res = write (WRITE_SOCKET(src), &c, 1); \
} G_STMT_END
......
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