Commit 19216e72 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

matroska, videobox, videofilter: fix compiler warnings when debugging is disabled in gstreamer

Fixes unused variable warnings when GStreamer's debugging system has been disabled.
parent 8afc8a73
......@@ -207,7 +207,6 @@ gst_ebml_peek_id_full (GstEbmlRead * ebml, guint32 * id, guint64 * length,
guint * prefix)
{
GstFlowReturn ret;
const guint8 *data = NULL;
ret = gst_ebml_peek_id_length (id, length, prefix,
(GstPeekData) gst_ebml_read_peek, (gpointer) gst_ebml_read_br (ebml),
......@@ -221,8 +220,10 @@ gst_ebml_peek_id_full (GstEbmlRead * ebml, guint32 * id, guint64 * length,
#ifndef GST_DISABLE_GST_DEBUG
{
const guint8 *data = NULL;
GstByteReader *br = gst_ebml_read_br (ebml);
guint size = gst_byte_reader_get_remaining (br);
gst_byte_reader_peek_data (br, size, &data);
GST_LOG_OBJECT (ebml->el, "current br %p; remaining %d", br, size);
......
......@@ -3186,7 +3186,6 @@ static gboolean
gst_video_box_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
guint * size)
{
GstVideoBox *video_box = GST_VIDEO_BOX (trans);
GstVideoFormat format;
gint width, height;
gboolean ret;
......@@ -3195,13 +3194,13 @@ gst_video_box_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
ret = gst_video_format_parse_caps (caps, &format, &width, &height);
if (!ret) {
GST_ERROR_OBJECT (video_box, "Invalid caps: %" GST_PTR_FORMAT, caps);
GST_ERROR_OBJECT (trans, "Invalid caps: %" GST_PTR_FORMAT, caps);
return FALSE;
}
*size = gst_video_format_get_size (format, width, height);
GST_LOG_OBJECT (video_box, "Returning from _unit_size %d", *size);
GST_LOG_OBJECT (trans, "Returning from _unit_size %d", *size);
return TRUE;
}
......
......@@ -187,7 +187,6 @@ static gboolean
gst_video_flip_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
GstVideoFlip *videoflip = GST_VIDEO_FLIP (btrans);
GstVideoFormat format;
gint width, height;
......@@ -196,7 +195,7 @@ gst_video_flip_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
*size = gst_video_format_get_size (format, width, height);
GST_DEBUG_OBJECT (videoflip, "our frame size is %d bytes (%dx%d)", *size,
GST_DEBUG_OBJECT (btrans, "our frame size is %d bytes (%dx%d)", *size,
width, height);
return TRUE;
......
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