Make sure caps are reffed as we're still have a pointer to it. OSLOSUMMIT1-200303051
authorWim Taymans <wim.taymans@gmail.com>
Sun, 26 Jan 2003 00:07:40 +0000 (00:07 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 26 Jan 2003 00:07:40 +0000 (00:07 +0000)
Original commit message from CVS:
Make sure caps are reffed as we're still have a pointer to it.

ext/ffmpeg/gstffmpegtypes.c

index ec3c40b..cc95ca6 100644 (file)
@@ -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;
   }