This should be a very low impact since it is comments only. It
addresses typos and spelling errors in a few files.
E
--
Erik Hovland
[EMAIL PROTECTED]
http://hovland.org/
Fix any spelling and grammar errors.
From: Erik Hovland <[EMAIL PROTECTED]>
---
src/dvd_input.c | 17 ++++++-----------
src/dvd_input.h | 3 ++-
2 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/src/dvd_input.c b/src/dvd_input.c
index 63ee69f..0a41bc6 100644
--- a/src/dvd_input.c
+++ b/src/dvd_input.c
@@ -110,7 +110,7 @@ static int css_seek(dvd_input_t dev, int blocks)
}
/**
- * set the block for the begining of a new title (key).
+ * set the block for the beginning of a new title (key).
*/
static int css_title(dvd_input_t dev, int block)
{
@@ -142,11 +142,6 @@ static int css_close(dvd_input_t dev)
return 0;
}
-
-
-
-
-
/**
* initialize and open a DVD device or file.
*/
@@ -201,7 +196,7 @@ static int file_seek(dvd_input_t dev, int blocks)
}
/**
- * set the block for the begining of a new title (key).
+ * set the block for the beginning of a new title (key).
*/
static int file_title(dvd_input_t dev, int block)
{
@@ -224,14 +219,14 @@ static int file_read(dvd_input_t dev, void *buffer, int blocks, int flags)
if(ret < 0) {
/* One of the reads failed, too bad. We won't even bother
- * returning the reads that went ok, and as in the posix spec
- * the file postition is left unspecified after a failure. */
+ * returning the reads that went OK, and as in the POSIX spec
+ * the file position is left unspecified after a failure. */
return ret;
}
if(ret == 0) {
- /* Nothing more to read. Return the whole blocks, if any, that we got.
- and adjust the file possition back to the previous block boundary. */
+ /* Nothing more to read. Return all of the whole blocks, if any.
+ * Adjust the file position back to the previous block boundary. */
size_t bytes = (size_t)blocks * DVD_VIDEO_LB_LEN - len;
off_t over_read = -(bytes % DVD_VIDEO_LB_LEN);
/*off_t pos =*/ lseek(dev->fd, over_read, SEEK_CUR);
diff --git a/src/dvd_input.h b/src/dvd_input.h
index fae498f..3bccc52 100644
--- a/src/dvd_input.h
+++ b/src/dvd_input.h
@@ -35,7 +35,8 @@ typedef struct dvd_input_s *dvd_input_t;
#define DVDINPUT_EXTERN extern
#endif
/**
- * Pointers which will be filled either the input methods functions.
+ * Function pointers that will be filled in by the input implementation. These
+ * functions provide the main API.
*/
DVDINPUT_EXTERN dvd_input_t (*dvdinput_open) (const char *);
DVDINPUT_EXTERN int (*dvdinput_close) (dvd_input_t);
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss