diff options
-rw-r--r-- | stream/stream_dvdnav.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 04045d10b0..4d2f2686b5 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -207,7 +207,8 @@ static int fill_buffer(stream_t *s, char *but, int len) update_title_len(s); while(!len) /* grab all event until DVDNAV_BLOCK_OK (len=2048), DVDNAV_STOP or DVDNAV_STILL_FRAME */ { - if(-1==(event=dvdnav_stream_read(priv, s->buffer, &len)) || len==-1) + event=dvdnav_stream_read(priv, s->buffer, &len); + if(event==-1 || len==-1) { mp_msg(MSGT_CPLAYER,MSGL_ERR, "DVDNAV stream read error!\n"); return 0; |