mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
glmemory: Handle failure of memory allocation gracefully
This commit is contained in:
parent
47a8242399
commit
5b13dca0ce
1 changed files with 2 additions and 0 deletions
|
@ -1172,6 +1172,8 @@ gst_gl_memory_setup_buffer (GstGLContext * context, GstVideoInfo * info,
|
|||
|
||||
for (i = 0; i < n_mem; i++) {
|
||||
gl_mem[i] = (GstGLMemory *) gst_gl_memory_alloc (context, info, i);
|
||||
if (gl_mem[i] == NULL)
|
||||
return FALSE;
|
||||
|
||||
gst_buffer_append_memory (buffer, (GstMemory *) gl_mem[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue