diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-12-12 15:31:20 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-12-12 15:31:20 +0000 |
commit | 4c58077f22a85edcf5ac8ad10c7b6899db7903ed (patch) | |
tree | ec10b27a83d78cff7363b2bd080b3b6583bc44c8 | |
parent | 4c82bf973de9b6e25404666e5bd073c0dcaec02f (diff) |
typefindfunctions: aac: don't try to unref NULL caps
-rw-r--r-- | gst/typefind/gsttypefindfunctions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 0b749812f..9203bccb9 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -1040,7 +1040,7 @@ aac_type_find (GstTypeFind * tf, gpointer unused) count = aac_type_find_scan_loas_frames (tf, &c, 20); if (count >= 3 && count > best_count) { - gst_caps_unref (best_caps); + gst_caps_replace (&best_caps, NULL); best_caps = gst_caps_new_simple ("audio/mpeg", "framed", G_TYPE_BOOLEAN, FALSE, "mpegversion", G_TYPE_INT, 4, |