diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2003-01-26 00:07:40 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2003-01-26 00:07:40 +0000 |
commit | 4e51fe4fb6da550d091c54827cfc86a17c62c83e (patch) | |
tree | e9f6d83df20321ace4bbc68d4cfae6343b9523f8 | |
parent | 17f2e68a7b5b9ac428aae595eda6b341fc3cf287 (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.c | 2 |
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; } |