summaryrefslogtreecommitdiff
path: root/src/input/input_http.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-16 23:33:42 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-16 23:33:42 +0000
commit847f0e85e8b0c8135294258a9507fba03cc1cc30 (patch)
tree0a74838023ea90c3bb53c7c4f737bab5dc84e427 /src/input/input_http.c
parentb88ff04361ced758928d2ad8b87cb8986d044a35 (diff)
downloadxine-lib-847f0e85e8b0c8135294258a9507fba03cc1cc30.tar.gz
xine-lib-847f0e85e8b0c8135294258a9507fba03cc1cc30.tar.bz2
New stream/meta info (safe) stuff.
BIG NOTE: use helpers to access to these informations (get/set/reset): _x_{stream,meta}_info_{get,set,reset}() are for internal use, don't use *_public() ones from inside the beast ;-) Some wrongly names "xine_" fonction renaming. CVS patchset: 5757 CVS date: 2003/11/16 23:33:42
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r--src/input/input_http.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index d0a52310a..176cee289 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.73 2003/11/16 15:32:10 mroi Exp $
+ * $Id: input_http.c,v 1.74 2003/11/16 23:33:44 f1rmb Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -358,10 +358,10 @@ static void http_plugin_read_metainf (input_plugin_t *this_gen) {
free(this->shoutcast_songtitle);
this->shoutcast_songtitle = strdup(songtitle);
- xine_set_meta_info(this->stream, XINE_META_INFO_TITLE, songtitle);
+ _x_meta_info_set(this->stream, XINE_META_INFO_TITLE, songtitle);
/* prepares the event */
- radio = xine_get_meta_info(this->stream, XINE_META_INFO_ALBUM);
+ radio = _x_meta_info_get(this->stream, XINE_META_INFO_ALBUM);
if (radio) {
strcpy(data.str, radio); /* WARNING: the data.str is char[256] */
@@ -496,20 +496,20 @@ static int read_shoutcast_header(http_input_plugin_t *this) {
lprintf ("input_http: shoutcast answer: >%s<\n", this->buf);
if (!strncasecmp(this->buf, "icy-name:", 9)) {
- xine_set_meta_info(this->stream, XINE_META_INFO_ALBUM,
+ _x_meta_info_set(this->stream, XINE_META_INFO_ALBUM,
(this->buf + 9 + (*(this->buf + 9) == ' ')));
- xine_set_meta_info(this->stream, XINE_META_INFO_TITLE,
+ _x_meta_info_set(this->stream, XINE_META_INFO_TITLE,
(this->buf + 9 + (*(this->buf + 9) == ' ')));
}
if (!strncasecmp(this->buf, "icy-genre:", 10)) {
- xine_set_meta_info(this->stream, XINE_META_INFO_GENRE,
+ _x_meta_info_set(this->stream, XINE_META_INFO_GENRE,
(this->buf + 10 + (*(this->buf + 10) == ' ')));
}
/* icy-notice1 is always the same */
if (!strncasecmp(this->buf, "icy-notice2:", 12)) {
- xine_set_meta_info(this->stream, XINE_META_INFO_COMMENT,
+ _x_meta_info_set(this->stream, XINE_META_INFO_COMMENT,
(this->buf + 12 + (*(this->buf + 12) == ' ')));
}