changeset 1875:84ed710a9adc libavformat

Move avio.h's url_get_max_packet_size() comment from source to header file. Remove the comment section of url_set_interrupt_cb() which was a duplicate as it appeared identically in both the header and the source file.
author takis
date Mon, 05 Mar 2007 14:26:50 +0000
parents 3328f652d741
children 247fdf49ffb8
files avio.c avio.h
diffstat 2 files changed, 9 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/avio.c	Mon Mar 05 13:55:45 2007 +0000
+++ b/avio.c	Mon Mar 05 14:26:50 2007 +0000
@@ -162,14 +162,6 @@
     return size;
 }
 
-/*
- * Return the maximum packet size associated to packetized file
- * handle. If the file is not packetized (stream like http or file on
- * disk), then 0 is returned.
- *
- * @param h file handle
- * @return maximum packet size in bytes
- */
 int url_get_max_packet_size(URLContext *h)
 {
     return h->max_packet_size;
@@ -186,12 +178,6 @@
     return 0;
 }
 
-/**
- * The callback is called in blocking functions to test regulary if
- * asynchronous interruption is needed. AVERROR(EINTR) is returned
- * in this case by the interrupted function. 'NULL' means no interrupt
- * callback is given.
- */
 void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
 {
     if (!interrupt_cb)
--- a/avio.h	Mon Mar 05 13:55:45 2007 +0000
+++ b/avio.h	Mon Mar 05 14:26:50 2007 +0000
@@ -61,6 +61,15 @@
 int url_close(URLContext *h);
 int url_exist(const char *filename);
 offset_t url_filesize(URLContext *h);
+
+/*
+ * Return the maximum packet size associated to packetized file
+ * handle. If the file is not packetized (stream like http or file on
+ * disk), then 0 is returned.
+ *
+ * @param h file handle
+ * @return maximum packet size in bytes
+ */
 int url_get_max_packet_size(URLContext *h);
 void url_get_filename(URLContext *h, char *buf, int buf_size);