sdi: Fix set-but-unused warnings

This commit is contained in:
Olivier Crête 2011-07-12 18:08:21 -04:00
parent eba9cf06d4
commit b44cb0a048
2 changed files with 5 additions and 8 deletions

View file

@ -296,7 +296,6 @@ copy_line (GstSdiDemux * sdidemux, guint8 * line)
if (sdidemux->line == format->lines) {
ret = gst_pad_push (sdidemux->srcpad, sdidemux->output_buffer);
gst_sdi_demux_get_output_buffer (sdidemux);
output_data = GST_BUFFER_DATA (sdidemux->output_buffer);
sdidemux->line = 0;
}
@ -318,7 +317,6 @@ gst_sdi_demux_chain (GstPad * pad, GstBuffer * buffer)
int offset = 0;
guint8 *data = GST_BUFFER_DATA (buffer);
int size = GST_BUFFER_SIZE (buffer);
guint8 *output_data;
GstFlowReturn ret = GST_FLOW_OK;
GstSdiFormat *format;
@ -366,7 +364,6 @@ gst_sdi_demux_chain (GstPad * pad, GstBuffer * buffer)
if (sdidemux->output_buffer == NULL) {
gst_sdi_demux_get_output_buffer (sdidemux);
}
output_data = GST_BUFFER_DATA (sdidemux->output_buffer);
#if 0
if (sdidemux->offset) {
@ -488,7 +485,7 @@ out:
static gboolean
gst_sdi_demux_sink_event (GstPad * pad, GstEvent * event)
{
gboolean res;
gboolean res = TRUE;
GstSdiDemux *sdidemux;
sdidemux = GST_SDI_DEMUX (gst_pad_get_parent (pad));
@ -514,7 +511,7 @@ gst_sdi_demux_sink_event (GstPad * pad, GstEvent * event)
}
gst_object_unref (sdidemux);
return TRUE;
return res;
}
static gboolean
@ -537,5 +534,5 @@ gst_sdi_demux_src_event (GstPad * pad, GstEvent * event)
}
gst_object_unref (sdidemux);
return TRUE;
return res;
}

View file

@ -285,7 +285,7 @@ gst_sdi_mux_sink_event (GstPad * pad, GstEvent * event)
}
gst_object_unref (sdimux);
return TRUE;
return res;
}
static gboolean
@ -308,5 +308,5 @@ gst_sdi_mux_src_event (GstPad * pad, GstEvent * event)
}
gst_object_unref (sdimux);
return TRUE;
return res;
}