[libdmapsharing] Modify now_playing_artwork() to return gchar *
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Modify now_playing_artwork() to return gchar *
- Date: Sun, 18 Mar 2018 15:26:29 +0000 (UTC)
commit c37524471c8ba249c408fe4eefe0a1660e00699f
Author: W. Michael Petullo <mike flyn org>
Date: Sun Mar 18 11:26:05 2018 -0400
Modify now_playing_artwork() to return gchar *
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dmap-control-player.c | 2 +-
libdmapsharing/dmap-control-player.h | 8 ++++----
libdmapsharing/dmap-control-share.c | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libdmapsharing/dmap-control-player.c b/libdmapsharing/dmap-control-player.c
index 255968b..d462539 100644
--- a/libdmapsharing/dmap-control-player.c
+++ b/libdmapsharing/dmap-control-player.c
@@ -77,7 +77,7 @@ dmap_control_player_now_playing_record (DmapControlPlayer * player)
now_playing_record (player);
}
-guchar *
+gchar *
dmap_control_player_now_playing_artwork (DmapControlPlayer * player, guint width,
guint height)
{
diff --git a/libdmapsharing/dmap-control-player.h b/libdmapsharing/dmap-control-player.h
index d7e0418..78f75b1 100644
--- a/libdmapsharing/dmap-control-player.h
+++ b/libdmapsharing/dmap-control-player.h
@@ -77,8 +77,8 @@ struct _DmapControlPlayerInterface
GTypeInterface parent_class;
DmapAvRecord *(*now_playing_record) (DmapControlPlayer * player);
- guchar *(*now_playing_artwork) (DmapControlPlayer * player,
- guint width, guint height);
+ gchar *(*now_playing_artwork) (DmapControlPlayer * player,
+ guint width, guint height);
void (*play_pause) (DmapControlPlayer * player);
void (*pause) (DmapControlPlayer * player);
void (*next_item) (DmapControlPlayer * player);
@@ -104,8 +104,8 @@ DmapAvRecord *dmap_control_player_now_playing_record (DmapControlPlayer * player
* @width: width
* @height: height
*/
-guchar *dmap_control_player_now_playing_artwork (DmapControlPlayer * player,
- guint width, guint height);
+gchar *dmap_control_player_now_playing_artwork (DmapControlPlayer * player,
+ guint width, guint height);
/**
* dmap_control_player_play_pause:
diff --git a/libdmapsharing/dmap-control-share.c b/libdmapsharing/dmap-control-share.c
index 180cddb..e15cf86 100644
--- a/libdmapsharing/dmap-control-share.c
+++ b/libdmapsharing/dmap-control-share.c
@@ -853,7 +853,7 @@ dmap_control_share_ctrl_int (DmapShare * share,
== 0) {
guint width = 320;
guint height = 320;
- guchar *artwork_filename;
+ gchar *artwork_filename;
gchar *buffer;
gsize buffer_len;
@@ -865,8 +865,8 @@ dmap_control_share_ctrl_int (DmapShare * share,
}
artwork_filename =
dmap_control_player_now_playing_artwork (dmap_control_share->
- priv->player, width,
- height);
+ priv->player, width,
+ height);
if (!artwork_filename) {
g_debug ("No artwork for currently playing song");
soup_message_set_status (message,
@@ -875,7 +875,7 @@ dmap_control_share_ctrl_int (DmapShare * share,
}
#ifdef HAVE_GDKPIXBUF
GdkPixbuf *artwork =
- gdk_pixbuf_new_from_file_at_scale ((char *) artwork_filename,
+ gdk_pixbuf_new_from_file_at_scale (artwork_filename,
width, height,
TRUE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]