Commit b133f840 authored by Petri Hintukainen's avatar Petri Hintukainen

error out if seek over bad block fails

(avoid infinite loop)
parent 317acb81
......@@ -640,6 +640,7 @@ static int _read_block(BLURAY *bd, BD_STREAM *st, uint8_t *buf)
if (file_seek(st->fp, st->clip_block_pos, SEEK_SET) < 0) {
BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Unable to seek clip %s!\n", st->clip->name);
return -1;
return 0;
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