mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
sdi: Fix set-but-unused warnings
This commit is contained in:
parent
eba9cf06d4
commit
b44cb0a048
2 changed files with 5 additions and 8 deletions
|
@ -296,7 +296,6 @@ copy_line (GstSdiDemux * sdidemux, guint8 * line)
|
||||||
if (sdidemux->line == format->lines) {
|
if (sdidemux->line == format->lines) {
|
||||||
ret = gst_pad_push (sdidemux->srcpad, sdidemux->output_buffer);
|
ret = gst_pad_push (sdidemux->srcpad, sdidemux->output_buffer);
|
||||||
gst_sdi_demux_get_output_buffer (sdidemux);
|
gst_sdi_demux_get_output_buffer (sdidemux);
|
||||||
output_data = GST_BUFFER_DATA (sdidemux->output_buffer);
|
|
||||||
sdidemux->line = 0;
|
sdidemux->line = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,7 +317,6 @@ gst_sdi_demux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
guint8 *data = GST_BUFFER_DATA (buffer);
|
guint8 *data = GST_BUFFER_DATA (buffer);
|
||||||
int size = GST_BUFFER_SIZE (buffer);
|
int size = GST_BUFFER_SIZE (buffer);
|
||||||
guint8 *output_data;
|
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
GstSdiFormat *format;
|
GstSdiFormat *format;
|
||||||
|
|
||||||
|
@ -366,7 +364,6 @@ gst_sdi_demux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
if (sdidemux->output_buffer == NULL) {
|
if (sdidemux->output_buffer == NULL) {
|
||||||
gst_sdi_demux_get_output_buffer (sdidemux);
|
gst_sdi_demux_get_output_buffer (sdidemux);
|
||||||
}
|
}
|
||||||
output_data = GST_BUFFER_DATA (sdidemux->output_buffer);
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (sdidemux->offset) {
|
if (sdidemux->offset) {
|
||||||
|
@ -488,7 +485,7 @@ out:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_sdi_demux_sink_event (GstPad * pad, GstEvent * event)
|
gst_sdi_demux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
gboolean res;
|
gboolean res = TRUE;
|
||||||
GstSdiDemux *sdidemux;
|
GstSdiDemux *sdidemux;
|
||||||
|
|
||||||
sdidemux = GST_SDI_DEMUX (gst_pad_get_parent (pad));
|
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);
|
gst_object_unref (sdidemux);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -537,5 +534,5 @@ gst_sdi_demux_src_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (sdidemux);
|
gst_object_unref (sdidemux);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,7 +285,7 @@ gst_sdi_mux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (sdimux);
|
gst_object_unref (sdimux);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -308,5 +308,5 @@ gst_sdi_mux_src_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (sdimux);
|
gst_object_unref (sdimux);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue