Commit 725f4b89 authored by hpi1's avatar hpi1

_seek_stream(): fixed segfault when old clip is NULL

parent 527f81f5
......@@ -314,7 +314,7 @@ static int64_t _seek_stream(BLURAY *bd, BD_STREAM *st,
if (!clip)
return -1;
if (!st->fp || clip->ref != st->clip->ref) {
if (!st->fp || !st->clip || clip->ref != st->clip->ref) {
// The position is in a new clip
st->clip = clip;
if (!_open_m2ts(bd, st)) {
......
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