summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-20 17:14:45 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-20 17:14:45 +0000
commit53b7a405913c384135f4ecaec6aba3eac1537bb4 (patch)
tree6aeceab2cdc5703f45d43999dc4c179159471697 /libmpdemux
parentee105bbcb3579e632b822f022d7aa3e606864d56 (diff)
downloadmpv-53b7a405913c384135f4ecaec6aba3eac1537bb4.tar.bz2
mpv-53b7a405913c384135f4ecaec6aba3eac1537bb4.tar.xz
Forgotten doxygen comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16033 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/http.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libmpdemux/http.c b/libmpdemux/http.c
index a3737e5f79..54c8fc90a3 100644
--- a/libmpdemux/http.c
+++ b/libmpdemux/http.c
@@ -65,6 +65,12 @@ static unsigned my_read(int fd, char *buffer, int len, streaming_ctrl_t *sc) {
return pos;
}
+/**
+ * \brief read and process (i.e. discard *g*) a block of ultravox metadata
+ * \param fd file descriptor to read from
+ * \param sc streaming_ctrl_t whose buffer is consumed before reading from fd
+ * \return number of real data before next metadata block starts or 0 on error
+ */
static unsigned uvox_meta_read(int fd, streaming_ctrl_t *sc) {
unsigned metaint;
unsigned char info[6];
@@ -93,6 +99,8 @@ static unsigned uvox_meta_read(int fd, streaming_ctrl_t *sc) {
/**
* \brief read one scast meta data entry and print it
+ * \param fd file descriptor to read from
+ * \param sc streaming_ctrl_t whose buffer is consumed before reading from fd
*/
static void scast_meta_read(int fd, streaming_ctrl_t *sc) {
unsigned char tmp = 0;
@@ -108,6 +116,13 @@ static void scast_meta_read(int fd, streaming_ctrl_t *sc) {
}
}
+/**
+ * \brief read data from scast/ultravox stream without any metadata
+ * \param fd file descriptor to read from
+ * \param buffer buffer to read data into
+ * \param size number of bytes to read
+ * \param sc streaming_ctrl_t whose buffer is consumed before reading from fd
+ */
static int scast_streaming_read(int fd, char *buffer, int size,
streaming_ctrl_t *sc) {
scast_data_t *sd = (scast_data_t *)sc->data;