From 75546a7f59777188e518374130bae19b674aa620 Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Thu, 4 Apr 2019 19:43:15 +0200 Subject: [PATCH] Fix compiler warnings (clang) --- src/gst/parole-gst.c | 2 +- src/misc/parole-file.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c index 4a13599..c6240ff 100644 --- a/src/gst/parole-gst.c +++ b/src/gst/parole-gst.c @@ -1501,8 +1501,8 @@ parole_gst_change_state (ParoleGst *gst, GstState new) { switch (ret) { case GST_STATE_CHANGE_SUCCESS: parole_gst_evaluate_state(gst, - GST_STATE_RETURN(gst->priv->playbin), GST_STATE(gst->priv->playbin), + GST_STATE_TARGET(gst->priv->playbin), GST_STATE_PENDING(gst->priv->playbin)); break; case GST_STATE_CHANGE_ASYNC: diff --git a/src/misc/parole-file.h b/src/misc/parole-file.h index a6fe0eb..0bb6f84 100644 --- a/src/misc/parole-file.h +++ b/src/misc/parole-file.h @@ -75,22 +75,22 @@ void parole_file_set_dvd_chapter (const ParoleFile *file, gin gint parole_file_get_dvd_chapter (const ParoleFile *file); const gchar -G_CONST_RETURN *parole_file_get_directory (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_directory (const ParoleFile *file) G_GNUC_PURE; const gchar -G_CONST_RETURN *parole_file_get_file_name (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_file_name (const ParoleFile *file) G_GNUC_PURE; const gchar -G_CONST_RETURN *parole_file_get_display_name (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_display_name (const ParoleFile *file) G_GNUC_PURE; const gchar -G_CONST_RETURN *parole_file_get_uri (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_uri (const ParoleFile *file) G_GNUC_PURE; const gchar -G_CONST_RETURN *parole_file_get_content_type (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_content_type (const ParoleFile *file) G_GNUC_PURE; const gchar -G_CONST_RETURN *parole_file_get_custom_subtitles (const ParoleFile *file) G_GNUC_PURE; +*parole_file_get_custom_subtitles (const ParoleFile *file) G_GNUC_PURE; G_END_DECLS -- 2.21.0