mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
amc: Fix crash when a sync_meta survives its sink
_amc_gl_free() could be called after the GstAmcVideoDec has been finalized, in the case downstream still has a ref to a buffer.
This commit is contained in:
parent
52f736c233
commit
9b9e39be24
1 changed files with 2 additions and 1 deletions
|
@ -153,6 +153,7 @@ _gl_sync_unref (struct gl_sync *sync)
|
|||
|
||||
_gl_sync_result_unref (sync->result);
|
||||
|
||||
g_object_unref (sync->sink);
|
||||
g_object_unref (sync->surface);
|
||||
gst_memory_unref ((GstMemory *) sync->oes_mem);
|
||||
|
||||
|
@ -1464,7 +1465,7 @@ retry:
|
|||
|
||||
sync = g_new0 (struct gl_sync, 1);
|
||||
sync->refcount = 1;
|
||||
sync->sink = self;
|
||||
sync->sink = g_object_ref (self);
|
||||
sync->buffer = outbuf;
|
||||
sync->surface = g_object_ref (self->surface);
|
||||
sync->oes_mem =
|
||||
|
|
Loading…
Reference in a new issue