summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-09 22:41:45 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-09 22:41:45 +0000
commitd7e32a0e84b3533aa71f72c4311852fe349fc6c9 (patch)
treed40a5f575b03f08294af11ea49cebc76defc5511 /stream/stream_dvdnav.c
parent0df02c3583cf2b909a1065624649f82b9d64b4e4 (diff)
downloadmpv-d7e32a0e84b3533aa71f72c4311852fe349fc6c9.tar.bz2
mpv-d7e32a0e84b3533aa71f72c4311852fe349fc6c9.tar.xz
one more deuglification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20826 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c3
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;