summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-06-29 13:48:16 +0200
committerJens Georg <mail@jensge.org>2018-10-25 21:18:08 +0200
commit7769e13bb37a33a43b387a3681e0513ebc11a544 (patch)
tree697ee101a7b5d261790b884f0594c49547ebe842
parentddca90752bd13a3ca01c868c034ade7b42408f52 (diff)
downloadgupnp-av-7769e13bb37a33a43b387a3681e0513ebc11a544.tar.gz
Fix some string casts
Signed-off-by: Jens Georg <mail@jensge.org>
-rw-r--r--libgupnp-av/fragment-util.c4
-rw-r--r--libgupnp-av/gupnp-didl-lite-resource.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libgupnp-av/fragment-util.c b/libgupnp-av/fragment-util.c
index bf5653c..dde7c06 100644
--- a/libgupnp-av/fragment-util.c
+++ b/libgupnp-av/fragment-util.c
@@ -717,9 +717,9 @@ fragment_util_check_fragments (DocNode *original,
/* If the child element is title or class,
* it must not be set to empty or removed.
*/
- if (g_strrstr ((char *) current_doc->children->children->name,
+ if (g_strrstr ((const char *) current_doc->children->children->name,
"title") != NULL ||
- g_strrstr ((char *) current_doc->children->children->name,
+ g_strrstr ((const char *) current_doc->children->children->name,
"class") != NULL) {
/* If the new tag has no corresponding title or class element */
if (new_doc->children->children == NULL) {
diff --git a/libgupnp-av/gupnp-didl-lite-resource.c b/libgupnp-av/gupnp-didl-lite-resource.c
index 2a497a2..8bfe436 100644
--- a/libgupnp-av/gupnp-didl-lite-resource.c
+++ b/libgupnp-av/gupnp-didl-lite-resource.c
@@ -1883,7 +1883,7 @@ gupnp_didl_lite_resource_set_subtitle_file_uri
xmlSetNsProp (resource->priv->xml_node,
resource->priv->pv_ns,
(unsigned char *) "subtitleFileUri",
- (unsigned char *) uri);
+ (xmlChar *) uri);
}
g_object_notify (G_OBJECT (resource), "subtitle-file-uri");
@@ -1920,7 +1920,7 @@ gupnp_didl_lite_resource_set_subtitle_file_type
xmlSetNsProp (resource->priv->xml_node,
resource->priv->pv_ns,
(unsigned char *) "subtitleFileType",
- (unsigned char *) type);
+ (xmlChar *) type);
}
g_object_notify (G_OBJECT (resource), "subtitle-file-type");