[gnome-internet-radio-locator] Add GST_PLAYER cast



commit e5bf9497c4a129d55c5cb97c4a46925d0856c5dc
Author: Ole Aamot <oka oka no>
Date:   Wed Jul 19 20:43:42 2017 +0200

    Add GST_PLAYER cast

 src/gnome-internet-radio-locator-markers.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-internet-radio-locator-markers.c b/src/gnome-internet-radio-locator-markers.c
index 1d92238..0e94b74 100644
--- a/src/gnome-internet-radio-locator-markers.c
+++ b/src/gnome-internet-radio-locator-markers.c
@@ -16,11 +16,13 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <string.h>
 #include <gtk/gtk.h>
 #include <gst/player/player.h>
 #include <champlain/champlain.h>
 #include "gnome-internet-radio-locator.h"
 #include "gnome-internet-radio-locator-markers.h"
+#include "gnome-internet-radio-locator-player.h"
 
 extern GtkWidget *input;
 extern GtkEntryCompletion *completion;
@@ -59,7 +61,7 @@ marker_function (ChamplainMarker *self,
        while (stationinfo != NULL) {
                if (strcasecmp(stationinfo->location, station)==0) {
                        gst_player_stop(player);
-                       gnome_internet_radio_locator_player_new(player, stationinfo->stream->uri);
+                       gnome_internet_radio_locator_player_new(GST_PLAYER(player), stationinfo->stream->uri);
                        gst_player_play(player);
                }
                stationinfo = stationinfo->next;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]