diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-18 13:33:14 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-18 13:33:14 +0200 |
commit | bab2bf3f110d361a316f1003bd467a35ed295436 (patch) | |
tree | 15a13a0b71c72df4b576a0a0dc15736886b0026e /sys/applemedia | |
parent | eecc9510709df23c2561e142570fa2c6d30f5e8e (diff) | |
download | gstreamer-plugins-bad-bab2bf3f110d361a316f1003bd467a35ed295436.tar.gz |
applemedia: fix release of null pointer
Diffstat (limited to 'sys/applemedia')
-rw-r--r-- | sys/applemedia/vtdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 317ef9e8a..460120c24 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -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); |