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.
This commit is contained in:
Wim Taymans 2003-01-26 00:07:40 +00:00
parent 17f2e68a7b
commit 4e51fe4fb6

View 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;
}