diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2013-09-29 23:43:23 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2013-12-05 00:17:01 +0000 |
commit | c32716e698e8456cf61ee3e8620cc15ad04817a8 (patch) | |
tree | 07e0862f65105f4c0087c8dfb793b171f818af5f | |
parent | 423916943ca85577aaea3fd5ae1d76fc6845a108 (diff) | |
download | gstreamer-plugins-bad-c32716e698e8456cf61ee3e8620cc15ad04817a8.tar.gz |
opencv: don't unref NULL caps in finalize
Fixes gst-inspect-1.0 -a and generic states unit test.
-rw-r--r-- | ext/opencv/gstdisparity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opencv/gstdisparity.cpp b/ext/opencv/gstdisparity.cpp index 9fcb9ee15..f3f9d64db 100644 --- a/ext/opencv/gstdisparity.cpp +++ b/ext/opencv/gstdisparity.cpp @@ -461,11 +461,11 @@ static void gst_disparity_finalize (GObject * object) { GstDisparity *filter; + filter = GST_DISPARITY (object); gst_disparity_release_all_pointers (filter); - gst_caps_unref (filter->caps); - filter->caps = NULL; + gst_caps_replace (&filter->caps, NULL); g_cond_clear (&filter->cond); g_mutex_clear (&filter->lock); |