summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-04 18:36:00 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-10-05 13:53:44 +0100
commit7037f25bba7aebfa16dced3a115952ef2b444b10 (patch)
tree6ce2a292eb6f1096f10157b1b57fc6df8c0aab95
parentf234e70f0ae39cca0d991bf53a22fc26a8430086 (diff)
downloadgstreamer-plugins-base-7037f25bba7aebfa16dced3a115952ef2b444b10.tar.gz
xvimagesink: Put error message into debug output instead of just throwing it away
-rw-r--r--sys/xvimage/xvimagepool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c
index bde949c9c..235a9f94e 100644
--- a/sys/xvimage/xvimagepool.c
+++ b/sys/xvimage/xvimagepool.c
@@ -167,13 +167,14 @@ xvimage_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
GstVideoInfo *info;
GstBuffer *xvimage;
GstMemory *mem;
+ GError *err = NULL;
info = &xvpool->info;
xvimage = gst_buffer_new ();
mem = gst_xvimage_allocator_alloc (xvpool->allocator, xvpool->im_format,
- xvpool->padded_width, xvpool->padded_height, &xvpool->crop, NULL);
+ xvpool->padded_width, xvpool->padded_height, &xvpool->crop, &err);
if (mem == NULL) {
gst_buffer_unref (xvimage);
@@ -196,7 +197,8 @@ xvimage_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
/* ERROR */
no_buffer:
{
- GST_WARNING_OBJECT (pool, "can't create image");
+ GST_WARNING_OBJECT (pool, "can't create image: %s", err->message);
+ g_clear_error (&err);
return GST_FLOW_ERROR;
}
}