diff options
-rw-r--r-- | libgupnp-av/fragment-util.c | 4 | ||||
-rw-r--r-- | libgupnp-av/gupnp-didl-lite-resource.c | 4 |
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"); |