ext/dvdread/dvdreadsrc.c: check for an error from

Original commit message from CVS:
* ext/dvdread/dvdreadsrc.c: check for an error from
DVDReadBlocks() correctly.
This commit is contained in:
David Schleef 2007-06-25 07:55:51 +00:00
parent 9278f9b128
commit 921e4a2ff4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-06-25 David Schleef <ds@schleef.org>
* ext/dvdread/dvdreadsrc.c: check for an error from
DVDReadBlocks() correctly.
2007-06-25 David Schleef <ds@schleef.org>
* ext/dvdread/dvdreadsrc.c:

View file

@ -778,7 +778,7 @@ again:
/* read NAV packet */
len = DVDReadBlocks (src->dvd_title, src->cur_pack, 1, oneblock);
if (len == 0)
if (len != 1)
goto read_error;
if (!gst_dvd_read_src_is_nav_pack (oneblock)) {