mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
typefindfunctions: Check for NULL return of gst_type_find_peek() instead of segfaulting in otio typefinder
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/merge_requests/329#note_194943
This commit is contained in:
parent
ba9ef3c50e
commit
6cc32a39e7
1 changed files with 3 additions and 0 deletions
|
@ -756,6 +756,9 @@ otio_type_find (GstTypeFind * tf, gpointer unused)
|
|||
return;
|
||||
|
||||
data = (const gchar *) gst_type_find_peek (tf, tmp - data, 15);
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
if (memcmp (data, "\"OTIO_SCHEMA\":", 15)) {
|
||||
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, OTIO_CAPS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue