Error when finding invalid data

This commit is contained in:
trav90
2017-05-04 02:32:12 -05:00
committed by roytam1
parent 1096be0306
commit 02fa952d69
@@ -574,10 +574,9 @@ TrackBuffersManager::SegmentParserLoop()
continue;
}
// We have neither an init segment nor a media segment, this is invalid
// data. However, as we do not remove any bytes that are supposed to be
// ignored, we simply ignore them.
MSE_DEBUG("Found invalid data, ignoring for now");
NeedMoreData();
// data.
MSE_DEBUG("Found invalid data");
RejectAppend(NS_ERROR_FAILURE, __func__);
return;
}