Fixes unused variable warnings when GStreamer's debugging system has been disabled.
guint * prefix)
{
GstFlowReturn ret;
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),
ret = gst_ebml_peek_id_length (id, length, prefix,
(GstPeekData) gst_ebml_read_peek, (gpointer) gst_ebml_read_br (ebml),
#ifndef GST_DISABLE_GST_DEBUG
{
#ifndef GST_DISABLE_GST_DEBUG
{
+ const guint8 *data = NULL;
GstByteReader *br = gst_ebml_read_br (ebml);
guint size = gst_byte_reader_get_remaining (br);
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);
gst_byte_reader_peek_data (br, size, &data);
GST_LOG_OBJECT (ebml->el, "current br %p; remaining %d", br, size);
gst_video_box_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
guint * size)
{
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;
GstVideoFormat format;
gint width, height;
gboolean ret;
ret = gst_video_format_parse_caps (caps, &format, &width, &height);
if (!ret) {
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);
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);
gst_video_flip_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
gst_video_flip_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
guint * size)
{
- GstVideoFlip *videoflip = GST_VIDEO_FLIP (btrans);
GstVideoFormat format;
gint width, height;
GstVideoFormat format;
gint width, height;
*size = gst_video_format_get_size (format, width, height);
*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;
width, height);
return TRUE;