ebml: crude hack to avoid crashing on unexpected metadata

The comment says this cannot happen, but it did and I don't know
why. This is not the correct fix, needs investigation. Test case:
bug_s555010094_r0.0005:0.008____IA__g_assertion_message_expr.webm
This commit is contained in:
Philip Jägenstedt 2010-05-13 10:23:10 +02:00 committed by Sebastian Dröge
parent 9c1267b1a9
commit c659c92091

View file

@ -3349,8 +3349,10 @@ gst_matroska_demux_parse_metadata (GstMatroskaDemux * demux)
GList *l;
GstEbmlLevel *curlevel;
/* Can't be NULL at this point */
g_assert (ebml->level != NULL);
if (ebml->level == NULL) {
GST_ERROR_OBJECT (demux, "Unexpected metadata, bailing");
return GST_FLOW_ERROR;
}
curlevel = ebml->level->data;
/* Make sure we don't parse a tags element twice and