[totem-pl-parser] podcast: Handle missing rel property for link node
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] podcast: Handle missing rel property for link node
- Date: Wed, 3 Mar 2021 14:00:53 +0000 (UTC)
commit 4871238394ca88be0f8076a60d1ac217d8a347e9
Author: crvi <crvisqr gmail com>
Date: Wed Mar 3 11:57:22 2021 +0530
podcast: Handle missing rel property for link node
plparse/totem-pl-parser-podcast.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 0877f04..864681b 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -556,6 +556,10 @@ parse_atom_entry (TotemPlParser *parser, xml_node_t *parent)
//FIXME how do we choose the default enclosure type?
rel = xml_parser_get_property (node, "rel");
+
+ if (rel == NULL)
+ continue;
+
if (g_ascii_strcasecmp (rel, "enclosure") == 0) {
const char *href;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]