summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/matroska/ebml-read.c3
-rw-r--r--gst/videobox/gstvideobox.c5
-rw-r--r--gst/videofilter/gstvideoflip.c3
3 files changed, 5 insertions, 6 deletions
diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c
index ae58ce6b7..379c882d0 100644
--- a/gst/matroska/ebml-read.c
+++ b/gst/matroska/ebml-read.c
@@ -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);
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index 6b4be8627..f9854882f 100644
--- a/gst/videobox/gstvideobox.c
+++ b/gst/videobox/gstvideobox.c
@@ -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;
}
diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c
index 410d62fc1..7b3e2a995 100644
--- a/gst/videofilter/gstvideoflip.c
+++ b/gst/videofilter/gstvideoflip.c
@@ -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;