mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
applemedia: fix release of null pointer
This commit is contained in:
parent
eecc951070
commit
bab2bf3f11
1 changed files with 4 additions and 2 deletions
|
@ -169,8 +169,10 @@ gst_vtdec_change_state (GstElement * element, GstStateChange transition)
|
|||
if (transition == GST_STATE_CHANGE_READY_TO_NULL) {
|
||||
gst_vtdec_destroy_session (self, &self->session);
|
||||
|
||||
CFRelease (self->fmt_desc);
|
||||
self->fmt_desc = NULL;
|
||||
if (self->fmt_desc != NULL) {
|
||||
CFRelease (self->fmt_desc);
|
||||
self->fmt_desc = NULL;
|
||||
}
|
||||
|
||||
gst_video_info_init (&self->vinfo);
|
||||
|
||||
|
|
Loading…
Reference in a new issue