[gupnp-av] Fix some string casts
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-av] Fix some string casts
- Date: Thu, 25 Oct 2018 22:10:37 +0000 (UTC)
commit 7769e13bb37a33a43b387a3681e0513ebc11a544
Author: Jens Georg <mail jensge org>
Date: Sun Jun 29 13:48:16 2014 +0200
Fix some string casts
Signed-off-by: Jens Georg <mail jensge org>
libgupnp-av/fragment-util.c | 4 ++--
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]