Commit 6cc32a39 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

typefindfunctions: Check for NULL return of gst_type_find_peek() instead of...

typefindfunctions: Check for NULL return of gst_type_find_peek() instead of segfaulting in otio typefinder

See gstreamer/gst-plugins-base!329 (comment 194943)
parent ba9ef3c5
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment