mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
17f2e68a7b
commit
4e51fe4fb6
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue