From 4e51fe4fb6da550d091c54827cfc86a17c62c83e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 26 Jan 2003 00:07:40 +0000 Subject: [PATCH] Make sure caps are reffed as we're still have a pointer to it. Original commit message from CVS: Make sure caps are reffed as we're still have a pointer to it. --- ext/ffmpeg/gstffmpegtypes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/ffmpeg/gstffmpegtypes.c b/ext/ffmpeg/gstffmpegtypes.c index ec3c40b..cc95ca6 100644 --- a/ext/ffmpeg/gstffmpegtypes.c +++ b/ext/ffmpeg/gstffmpegtypes.c @@ -61,6 +61,8 @@ gst_ffmpegtypes_typefind (GstBuffer *buffer, gpointer priv) if (highest) { GstCaps *caps; caps = g_hash_table_lookup (global_types, highest->name); + /* make sure we still hold a refcount to this caps */ + gst_caps_ref (caps); return caps; } -- 2.7.4