mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: Put error message into debug output instead of just throwing it away
This commit is contained in:
parent
4115814f36
commit
19d714fa2f
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue