Original commit message from CVS:
* ext/dvdread/dvdreadsrc.c: check for an error from
DVDReadBlocks() correctly.
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:
If we can't read a nav packet, or it doesn't look like a nav
packet, that's an error. Previous behavior was to look at
/* 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)) {