From: Wim Taymans Date: Sun, 26 Jan 2003 00:07:40 +0000 (+0000) Subject: Make sure caps are reffed as we're still have a pointer to it. X-Git-Tag: OSLOSUMMIT1-200303051^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e51fe4fb6da550d091c54827cfc86a17c62c83e;p=platform%2Fupstream%2Fgst-libav.git 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. --- 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; }