mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
va: decoder: Also ref the display when duplicating pictures.
The _destroy_buffers() will check the display handle using the g_return_val_if_fail. we should not generate the invalid pointer warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1368>
This commit is contained in:
parent
53391d2b8d
commit
c2bffe22f3
1 changed files with 1 additions and 0 deletions
|
@ -846,6 +846,7 @@ gst_va_decode_picture_dup (GstVaDecodePicture * pic)
|
||||||
|
|
||||||
dup = g_slice_new0 (GstVaDecodePicture);
|
dup = g_slice_new0 (GstVaDecodePicture);
|
||||||
|
|
||||||
|
dup->display = gst_object_ref (pic->display);
|
||||||
/* dups only need gstbuffer */
|
/* dups only need gstbuffer */
|
||||||
dup->gstbuffer = gst_buffer_ref (pic->gstbuffer);
|
dup->gstbuffer = gst_buffer_ref (pic->gstbuffer);
|
||||||
return dup;
|
return dup;
|
||||||
|
|
Loading…
Reference in a new issue