mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
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.
This commit is contained in:
parent
b5c8c7708b
commit
098cf89e34
4 changed files with 3 additions and 12 deletions
|
@ -547,7 +547,7 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
|
||||||
GstJpegEnc *jpegenc;
|
GstJpegEnc *jpegenc;
|
||||||
guchar *data;
|
guchar *data;
|
||||||
gulong size;
|
gulong size;
|
||||||
guint height, width;
|
guint height;
|
||||||
guchar *base[3], *end[3];
|
guchar *base[3], *end[3];
|
||||||
gint i, j, k;
|
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_metadata (jpegenc->output_buffer, buf,
|
||||||
GST_BUFFER_COPY_TIMESTAMPS);
|
GST_BUFFER_COPY_TIMESTAMPS);
|
||||||
|
|
||||||
width = jpegenc->width;
|
|
||||||
height = jpegenc->height;
|
height = jpegenc->height;
|
||||||
|
|
||||||
for (i = 0; i < jpegenc->channels; i++) {
|
for (i = 0; i < jpegenc->channels; i++) {
|
||||||
|
|
|
@ -941,10 +941,8 @@ connect_failed:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_pulseringbuffer_release (GstRingBuffer * buf)
|
gst_pulseringbuffer_release (GstRingBuffer * buf)
|
||||||
{
|
{
|
||||||
GstPulseSink *psink;
|
|
||||||
GstPulseRingBuffer *pbuf;
|
GstPulseRingBuffer *pbuf;
|
||||||
|
|
||||||
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (buf));
|
|
||||||
pbuf = GST_PULSERING_BUFFER_CAST (buf);
|
pbuf = GST_PULSERING_BUFFER_CAST (buf);
|
||||||
|
|
||||||
pa_threaded_mainloop_lock (mainloop);
|
pa_threaded_mainloop_lock (mainloop);
|
||||||
|
@ -957,12 +955,6 @@ gst_pulseringbuffer_release (GstRingBuffer * buf)
|
||||||
static void
|
static void
|
||||||
gst_pulsering_success_cb (pa_stream * s, int success, void *userdata)
|
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);
|
pa_threaded_mainloop_signal (mainloop, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
#define SEND_COMMAND(src, command) \
|
#define SEND_COMMAND(src, command) \
|
||||||
G_STMT_START { \
|
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); \
|
_res = write (WRITE_SOCKET(src), &c, 1); \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
#define SEND_COMMAND(src, command) \
|
#define SEND_COMMAND(src, command) \
|
||||||
G_STMT_START { \
|
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); \
|
_res = write (WRITE_SOCKET(src), &c, 1); \
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue