diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-03 19:56:58 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-03 19:56:58 +0200 |
commit | f9c0a01322ba253bbb5aae0ce0c994bcab0d8ee8 (patch) | |
tree | a44b1e44abee32aa2c71f7724d100e8251c06b95 | |
parent | 2c6ee93fbbfc2ff754be551038eee79047d9c988 (diff) | |
download | xine-lib-f9c0a01322ba253bbb5aae0ce0c994bcab0d8ee8.tar.gz xine-lib-f9c0a01322ba253bbb5aae0ce0c994bcab0d8ee8.tar.bz2 |
Remove specific ID3v2 parsing funcion from the header file, always use the generic one to access them.
-rw-r--r-- | src/demuxers/id3.c | 18 | ||||
-rw-r--r-- | src/demuxers/id3.h | 23 |
2 files changed, 19 insertions, 22 deletions
diff --git a/src/demuxers/id3.c b/src/demuxers/id3.c index 85b42efa8..d7d2c4725 100644 --- a/src/demuxers/id3.c +++ b/src/demuxers/id3.c @@ -337,9 +337,9 @@ static int id3v22_interp_frame(input_plugin_t *input, } -int id3v22_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header) { +static int id3v22_parse_tag(input_plugin_t *input, + xine_stream_t *stream, + int8_t *mp3_frame_header) { id3v2_header_t tag_header; id3v22_frame_header_t tag_frame_header; int pos = 0; @@ -530,9 +530,9 @@ static int id3v23_interp_frame(input_plugin_t *input, } } -int id3v23_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header) { +static int id3v23_parse_tag(input_plugin_t *input, + xine_stream_t *stream, + int8_t *mp3_frame_header) { id3v2_header_t tag_header; id3v23_frame_header_t tag_frame_header; id3v23_frame_ext_header_t tag_frame_ext_header; @@ -783,9 +783,9 @@ static int id3v24_interp_frame(input_plugin_t *input, } } -int id3v24_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header) { +static int id3v24_parse_tag(input_plugin_t *input, + xine_stream_t *stream, + int8_t *mp3_frame_header) { id3v2_header_t tag_header; id3v24_frame_header_t tag_frame_header; id3v24_frame_ext_header_t tag_frame_ext_header; diff --git a/src/demuxers/id3.h b/src/demuxers/id3.h index b4ea4b6be..9cab594a1 100644 --- a/src/demuxers/id3.h +++ b/src/demuxers/id3.h @@ -151,19 +151,16 @@ typedef struct { int id3v1_parse_tag (input_plugin_t *input, xine_stream_t *stream); -int id3v22_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header); - -int id3v23_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header); - -int id3v24_parse_tag(input_plugin_t *input, - xine_stream_t *stream, - int8_t *mp3_frame_header); - -/* Generic function that switch between the three above */ +/** + * @brief Generic function for ID3v2 tags parsing. + * @param input Pointer to the input plugin used by the demuxer, used + * to access the tag's data. + * @param stream Pointer to the xine stream currently being read. + * @param mp3_frame_header Header of the MP3 frame carrying the tag. + * + * @note This function will take care of calling the proper function for + * parsing ID3v2.2, ID3v2.3 or ID3v2.4 tags. + */ int id3v2_parse_tag(input_plugin_t *input, xine_stream_t *stream, int8_t *mp3_frame_header); |