summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2003-01-26 00:07:40 +0000
committerWim Taymans <wim.taymans@gmail.com>2003-01-26 00:07:40 +0000
commit4e51fe4fb6da550d091c54827cfc86a17c62c83e (patch)
treee9f6d83df20321ace4bbc68d4cfae6343b9523f8
parent17f2e68a7b5b9ac428aae595eda6b341fc3cf287 (diff)
Make sure caps are reffed as we're still have a pointer to it.OSLOSUMMIT1-200303051
Original commit message from CVS: Make sure caps are reffed as we're still have a pointer to it.
-rw-r--r--ext/ffmpeg/gstffmpegtypes.c2
1 files changed, 2 insertions, 0 deletions
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;
}