summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-10-23 16:37:01 +0000
committerBastien Nocera <hadess@src.gnome.org>2007-10-23 16:37:01 +0000
commit573a541536f8a22e627c8908118ee96876500158 (patch)
tree63a449c04d5f1fb153ececef53e43b892c0ac600
parentd60eacfb4ee056007b0f7fea7495347efcb0eabd (diff)
downloadtotem-573a541536f8a22e627c8908118ee96876500158.tar.gz
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--ChangeLog9
-rw-r--r--src/plparse/plparser.symbols1
-rw-r--r--src/plparse/totem-pl-parser.h5
-rw-r--r--src/plparse/xmlparser.c2
4 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 220477cad..4fc37f73a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 9f2d9acd9..fbf08e60e 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 d1cc466b4..4d21a4e85 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 1519be53a..31b01c061 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);