mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
libs: decoder: Don't unref null object
** (gst-launch-1.0:9789): CRITICAL **: 15:29:09.330: gst_vaapi_context_unref: assertion 'context != NULL' failed
This commit is contained in:
parent
ad31d5bb81
commit
3737692dd4
1 changed files with 4 additions and 2 deletions
|
@ -483,8 +483,10 @@ gst_vaapi_decoder_finalize (GObject * object)
|
||||||
decoder->frames = NULL;
|
decoder->frames = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_vaapi_context_unref (decoder->context);
|
if (decoder->context) {
|
||||||
decoder->context = NULL;
|
gst_vaapi_context_unref (decoder->context);
|
||||||
|
decoder->context = NULL;
|
||||||
|
}
|
||||||
decoder->va_context = VA_INVALID_ID;
|
decoder->va_context = VA_INVALID_ID;
|
||||||
|
|
||||||
gst_vaapi_display_replace (&decoder->display, NULL);
|
gst_vaapi_display_replace (&decoder->display, NULL);
|
||||||
|
|
Loading…
Reference in a new issue