mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
Fix GstVaapiDecoder::destroy(): GASyncQueue is not a GObject, likewise for GstBuffer.
This commit is contained in:
parent
6a3b05dbca
commit
7a3934d01d
1 changed files with 3 additions and 3 deletions
|
@ -262,14 +262,14 @@ gst_vaapi_decoder_finalize(GObject *object)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->buffers) {
|
if (priv->buffers) {
|
||||||
clear_async_queue(priv->buffers, (GDestroyNotify)g_object_unref);
|
clear_async_queue(priv->buffers, (GDestroyNotify)gst_buffer_unref);
|
||||||
g_object_unref(priv->buffers);
|
g_async_queue_unref(priv->buffers);
|
||||||
priv->buffers = NULL;
|
priv->buffers = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->surfaces) {
|
if (priv->surfaces) {
|
||||||
clear_async_queue(priv->surfaces, (GDestroyNotify)destroy_surface);
|
clear_async_queue(priv->surfaces, (GDestroyNotify)destroy_surface);
|
||||||
g_object_unref(priv->surfaces);
|
g_async_queue_unref(priv->surfaces);
|
||||||
priv->surfaces = NULL;
|
priv->surfaces = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue