ext/dvdread/dvdreadsrc.c: check for an error from
authorDavid Schleef <ds@schleef.org>
Mon, 25 Jun 2007 07:55:51 +0000 (07:55 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 25 Jun 2007 07:55:51 +0000 (07:55 +0000)
Original commit message from CVS:
* ext/dvdread/dvdreadsrc.c: check for an error from
DVDReadBlocks() correctly.

ChangeLog
ext/dvdread/dvdreadsrc.c

index b576fcd..3357ffe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
index 38f2579..31ac07a 100644 (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)) {