diff options
author | Bastien Nocera <hadess@hadess.net> | 2007-10-23 16:37:01 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2007-10-23 16:37:01 +0000 |
commit | 573a541536f8a22e627c8908118ee96876500158 (patch) | |
tree | 63a449c04d5f1fb153ececef53e43b892c0ac600 | |
parent | d60eacfb4ee056007b0f7fea7495347efcb0eabd (diff) |
export totem_pl_parser_parse_date as used by Podcasts summary is
2007-10-23 Bastien Nocera <hadess@hadess.net>
* src/plparse/plparser.symbols: export totem_pl_parser_parse_date
as used by Podcasts
* src/plparse/totem-pl-parser.h: summary is
description in Podcasts
* src/plparse/xmlparser.c: (xml_parser_get_node_internal):
Fix uninitialised variable warning in valgrind
svn path=/trunk/; revision=4810
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/plparse/plparser.symbols | 1 | ||||
-rw-r--r-- | src/plparse/totem-pl-parser.h | 5 | ||||
-rw-r--r-- | src/plparse/xmlparser.c | 2 |
4 files changed, 15 insertions, 2 deletions
@@ -1,3 +1,12 @@ +2007-10-23 Bastien Nocera <hadess@hadess.net> + + * src/plparse/plparser.symbols: export totem_pl_parser_parse_date + as used by Podcasts + * src/plparse/totem-pl-parser.h: summary is + description in Podcasts + * src/plparse/xmlparser.c: (xml_parser_get_node_internal): + Fix uninitialised variable warning in valgrind + 2007-10-23 Philip Withnall <pwithnall@svn.gnome.org> * configure.in: Decrease Python dependency back to 2.3, diff --git a/src/plparse/plparser.symbols b/src/plparse/plparser.symbols index 9f2d9acd..fbf08e60 100644 --- a/src/plparse/plparser.symbols +++ b/src/plparse/plparser.symbols @@ -13,6 +13,7 @@ totem_pl_parser_can_parse_from_data totem_pl_parser_can_parse_from_filename totem_pl_parser_type_get_type totem_pl_parser_parse_duration +totem_pl_parser_parse_date totem_cd_detect_type totem_cd_detect_type_with_url totem_cd_detect_type_from_dir diff --git a/src/plparse/totem-pl-parser.h b/src/plparse/totem-pl-parser.h index d1cc466b..4d21a4e8 100644 --- a/src/plparse/totem-pl-parser.h +++ b/src/plparse/totem-pl-parser.h @@ -67,8 +67,8 @@ struct TotemPlParser { #define TOTEM_PL_PARSER_FIELD_ENDTIME "endtime" #define TOTEM_PL_PARSER_FIELD_COPYRIGHT "copyright" #define TOTEM_PL_PARSER_FIELD_ABSTRACT "abstract" -#define TOTEM_PL_PARSER_FIELD_SUMMARY TOTEM_PL_PARSER_FIELD_ABSTRACT #define TOTEM_PL_PARSER_FIELD_DESCRIPTION "description" +#define TOTEM_PL_PARSER_FIELD_SUMMARY TOTEM_PL_PARSER_FIELD_DESCRIPTION #define TOTEM_PL_PARSER_FIELD_MOREINFO "moreinfo" #define TOTEM_PL_PARSER_FIELD_SCREENSIZE "screensize" #define TOTEM_PL_PARSER_FIELD_UI_MODE "ui-mode" @@ -84,7 +84,8 @@ struct TotemPlParserClass { GObjectClass parent_class; /* signals */ - void (*entry_parsed) (TotemPlParser *parser, const char *uri, + void (*entry_parsed) (TotemPlParser *parser, + const char *uri, GHashTable *metadata); void (*playlist_started) (TotemPlParser *parser, const char *uri, diff --git a/src/plparse/xmlparser.c b/src/plparse/xmlparser.c index 1519be53..31b01c06 100644 --- a/src/plparse/xmlparser.c +++ b/src/plparse/xmlparser.c @@ -239,6 +239,8 @@ static int xml_parser_get_node_internal (xml_node_t *current_node, char *root_na if (rec < MAX_RECURSION) { + memset (tok, 0, TOKEN_SIZE); + while ((bypass_get_token) || (res = lexer_get_token(tok, TOKEN_SIZE)) != T_ERROR) { bypass_get_token = 0; lprintf("info: %d - %d : '%s'\n", state, res, tok); |