mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst: some more unused-but-set-variable warning fixes
This commit is contained in:
parent
335293bf50
commit
0777b678f5
7 changed files with 19 additions and 16 deletions
|
@ -81,8 +81,9 @@ dump_bytes (guint8 * data, guint16 len)
|
|||
static void
|
||||
dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len)
|
||||
{
|
||||
guint16 obj_h G_GNUC_UNUSED;
|
||||
guint16 obj_w;
|
||||
guint8 *end = data + len;
|
||||
guint16 obj_w, obj_h;
|
||||
guint x = 0;
|
||||
|
||||
if (data + 4 > end)
|
||||
|
@ -175,7 +176,8 @@ pgs_composition_object_render (PgsCompositionObject * obj, SpuState * state,
|
|||
SpuColour *colour;
|
||||
guint8 *planes[3]; /* YUV frame pointers */
|
||||
guint8 *data, *end;
|
||||
guint16 obj_w, obj_h;
|
||||
guint16 obj_w;
|
||||
guint16 obj_h G_GNUC_UNUSED;
|
||||
guint x, y, i, min_x, max_x;
|
||||
|
||||
if (G_UNLIKELY (obj->rle_data == NULL || obj->rle_data_size == 0
|
||||
|
@ -461,8 +463,8 @@ parse_set_palette (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
|
||||
const gint PGS_PALETTE_ENTRY_SIZE = 5;
|
||||
guint8 *end = payload + len;
|
||||
guint8 palette_id;
|
||||
guint8 palette_version;
|
||||
guint8 palette_id G_GNUC_UNUSED;
|
||||
guint8 palette_version G_GNUC_UNUSED;
|
||||
gint n_entries, i;
|
||||
|
||||
if (len < 2) /* Palette command too short */
|
||||
|
@ -520,7 +522,7 @@ parse_set_window (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
{
|
||||
SpuState *state = &dvdspu->spu_state;
|
||||
guint8 *end = payload + len;
|
||||
guint8 win_count, win_id;
|
||||
guint8 win_count, win_id G_GNUC_UNUSED;
|
||||
gint i;
|
||||
|
||||
if (payload + 1 > end)
|
||||
|
|
|
@ -425,7 +425,7 @@ gst_invtelecine_compare_fields_mse_ave (GstInvtelecine * invtelecine,
|
|||
guint8 *data2_1;
|
||||
guint8 *data2_2;
|
||||
int field_index1;
|
||||
int field_index2;
|
||||
int field_index2 G_GNUC_UNUSED; /* FIXME: should it be used? */
|
||||
double diff;
|
||||
double sum;
|
||||
double linesum;
|
||||
|
|
|
@ -438,8 +438,8 @@ gst_jpeg_parse_sof (GstJpegParse * parse, GstByteReader * reader)
|
|||
guint8 numcomps = 0; /* Number of components in image
|
||||
(1 for gray, 3 for YUV, etc.) */
|
||||
guint8 precision; /* precision (in bits) for the samples */
|
||||
guint8 compId[3]; /* unique value identifying each component */
|
||||
guint8 qtId[3]; /* quantization table ID to use for this comp */
|
||||
guint8 compId[3] G_GNUC_UNUSED; /* unique value identifying each component */
|
||||
guint8 qtId[3] G_GNUC_UNUSED; /* quantization table ID to use for this comp */
|
||||
guint8 blockWidth[3]; /* Array[numComponents] giving the number of
|
||||
blocks (horiz) in this component */
|
||||
guint8 blockHeight[3]; /* Same for the vertical part of this component */
|
||||
|
@ -464,7 +464,7 @@ gst_jpeg_parse_sof (GstJpegParse * parse, GstByteReader * reader)
|
|||
if (!gst_byte_reader_get_uint8 (reader, &numcomps))
|
||||
return FALSE;
|
||||
|
||||
if (numcomps > 3)
|
||||
if (numcomps > 3) /* FIXME */
|
||||
return FALSE;
|
||||
|
||||
/* Get decimation and quantization table id for each component */
|
||||
|
|
|
@ -803,8 +803,8 @@ static void
|
|||
rfb_decoder_hextile_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
|
||||
gint rect_w, gint rect_h)
|
||||
{
|
||||
gint32 x, x_count, x_end, x_max, x_max_16;
|
||||
gint32 y, y_count, y_end, y_max, y_max_16;
|
||||
gint32 x, x_count G_GNUC_UNUSED, x_end, x_max, x_max_16;
|
||||
gint32 y, y_count G_GNUC_UNUSED, y_end, y_max, y_max_16;
|
||||
guint8 subencoding, nr_subrect, xy, wh;
|
||||
guint32 background, foreground;
|
||||
|
||||
|
|
|
@ -2253,11 +2253,11 @@ gst_mpegts_demux_parse_stream (GstMpegTSDemux * demux, GstMpegTSStream * stream,
|
|||
const guint8 * in_data, guint in_size)
|
||||
{
|
||||
GstFlowReturn ret;
|
||||
gboolean transport_error_indicator;
|
||||
gboolean transport_error_indicator G_GNUC_UNUSED;
|
||||
gboolean transport_priority G_GNUC_UNUSED;
|
||||
gboolean payload_unit_start_indicator;
|
||||
gboolean transport_priority;
|
||||
guint16 PID;
|
||||
guint8 transport_scrambling_control;
|
||||
guint8 transport_scrambling_control G_GNUC_UNUSED;
|
||||
guint8 adaptation_field_control;
|
||||
guint8 continuity_counter;
|
||||
const guint8 *data = in_data;
|
||||
|
|
|
@ -112,7 +112,7 @@ gst_pes_filter_parse (GstPESFilter * filter)
|
|||
GstFlowReturn ret;
|
||||
guint32 start_code;
|
||||
|
||||
gboolean STD_buffer_bound_scale;
|
||||
gboolean STD_buffer_bound_scale G_GNUC_UNUSED;
|
||||
guint16 STD_buffer_size_bound;
|
||||
const guint8 *data;
|
||||
gint avail, datalen;
|
||||
|
|
|
@ -356,7 +356,8 @@ mpegts_packetizer_parse_descriptors (MpegTSPacketizer * packetizer,
|
|||
/* include tag and length */
|
||||
desc = g_string_new_len ((gchar *) data - 2, length + 2);
|
||||
data += length;
|
||||
/* G_TYPE_GSTING is a GBoxed type and is used so properly marshalled from python */
|
||||
/* G_TYPE_GSTRING is a GBoxed type and is used so properly marshalled from
|
||||
* python (FIXME: should either be G_TYPE_STRING or GST_TYPE_BUFFFER) */
|
||||
g_value_init (&value, G_TYPE_GSTRING);
|
||||
g_value_take_boxed (&value, desc);
|
||||
g_value_array_append (descriptors, &value);
|
||||
|
|
Loading…
Reference in a new issue