Commit b571ba27 authored by Romain Bignon's avatar Romain Bignon

fix crash when decoder is NULL

parent de8f2739
......@@ -79,7 +79,7 @@ static int ogg_seek_cb(void *data, ogg_int64_t offset, int whence)
struct vorbis_input_stream *vis = data;
return vis->seekable &&
decoder_get_command(vis->decoder) != DECODE_COMMAND_STOP &&
(!vis->decoder || decoder_get_command(vis->decoder) != DECODE_COMMAND_STOP) &&
input_stream_seek(vis->input_stream, offset, whence, NULL)
? 0 : -1;
}
......
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