summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2014-10-09 12:28:11 +1100
committerMatthew Waters <matthew@centricular.com>2014-10-09 12:36:18 +1100
commit88f8a919794db36b654d7d4cfa0a187bbed4d49d (patch)
tree3c7ef049b4a6c72387aee9358e1230fad2262123
parent6dabcd4b0586cf99dff12a61084e211a9529539a (diff)
downloadgstreamer-plugins-bad-88f8a919794db36b654d7d4cfa0a187bbed4d49d.tar.gz
glcolorconvert: output why we cannot convert a buffer
-rw-r--r--gst-libs/gst/gl/gstglcolorconvert.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c
index 31dcbdac0..2c76694fd 100644
--- a/gst-libs/gst/gl/gstglcolorconvert.c
+++ b/gst-libs/gst/gl/gstglcolorconvert.c
@@ -1257,11 +1257,14 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
convert->priv->in_tex[i] =
(GstGLMemory *) gst_buffer_peek_memory (convert->inbuf, i);
if (!gst_is_gl_memory ((GstMemory *) convert->priv->in_tex[i])) {
+ GST_ERROR_OBJECT (convert, "input must be GstGLMemory");
res = FALSE;
goto out;
}
if (!gst_memory_map ((GstMemory *) convert->priv->in_tex[i], &in_info[i],
GST_MAP_READ | GST_MAP_GL)) {
+ GST_ERROR_OBJECT (convert, "failed to map input memory %p",
+ convert->priv->in_tex[i]);
res = FALSE;
goto out;
}
@@ -1271,6 +1274,7 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
GstGLMemory *out_tex =
(GstGLMemory *) gst_buffer_peek_memory (convert->outbuf, j);
if (!gst_is_gl_memory ((GstMemory *) out_tex)) {
+ GST_ERROR_OBJECT (convert, "output must be GstGLMemory");
res = FALSE;
goto out;
}
@@ -1291,6 +1295,8 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
if (!gst_memory_map ((GstMemory *) convert->priv->out_tex[j], &out_info[j],
GST_MAP_WRITE | GST_MAP_GL)) {
+ GST_ERROR_OBJECT (convert, "failed to map output memory %p",
+ convert->priv->out_tex[i]);
res = FALSE;
goto out;
}