[grilo-plugins] youtube: fix assignment compiler warnings
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] youtube: fix assignment compiler warnings
- Date: Mon, 5 Sep 2016 14:42:17 +0000 (UTC)
commit d519b20d3a21bd040671a30cfb701fd735064c6d
Author: Victor Toso <me victortoso com>
Date: Sat Sep 3 15:21:17 2016 +0200
youtube: fix assignment compiler warnings
grl-youtube.c:745:47: warning: passing argument 1 of
gdata_youtube_service_get_categories_async’ from incompatible pointer
gdata_youtube_service_get_categories_async (service, NULL,
^~~~~~~
grl-youtube.c:31: expected ‘GDataYouTubeService * but argument
is of type ‘GDataService *
void gdata_youtube_service_get_categories_async (GDataYouTubeService
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grl-youtube.c: In function ‘produce_from_feed’:
grl-youtube.c:1076:9: warning: assignment from incompatible pointer
query = gdata_youtube_query_new (NULL);
^
grl-youtube.c: In function ‘produce_from_category’:
grl-youtube.c:1128:9: warning: assignment from incompatible pointer
query = gdata_youtube_query_new (NULL);
^
grl-youtube.c: In function ‘grl_youtube_source_search’:
grl-youtube.c:1317:9: warning: assignment from incompatible pointer
query = gdata_youtube_query_new (ss->text);
^
https://bugzilla.gnome.org/show_bug.cgi?id=770806
src/youtube/grl-youtube.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index 2e2a859..621f7c3 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -732,12 +732,12 @@ static void
build_category_directory (BuildCategorySpec *bcs)
{
GrlYoutubeSource *source;
- GDataService *service;
+ GDataYouTubeService *service;
GRL_DEBUG (__FUNCTION__);
source = GRL_YOUTUBE_SOURCE (bcs->source);
- service = GDATA_SERVICE (source->priv->service);
+ service = GDATA_YOUTUBE_SERVICE (source->priv->service);
gdata_youtube_service_get_categories_async (service, NULL,
build_categories_directory_read_cb,
bcs);
@@ -1069,7 +1069,7 @@ produce_from_feed (OperationSpec *os)
service = GRL_YOUTUBE_SOURCE (os->source)->priv->service;
/* Index in GData starts at 1 */
- query = gdata_youtube_query_new (NULL);
+ query = GDATA_QUERY (gdata_youtube_query_new (NULL));
gdata_query_set_start_index (query, os->skip + 1);
gdata_query_set_max_results (query, os->count);
os->category_info = &feeds_dir[feed_type];
@@ -1121,7 +1121,7 @@ produce_from_category (OperationSpec *os)
service = GRL_YOUTUBE_SOURCE (os->source)->priv->service;
/* Index in GData starts at 1 */
- query = gdata_youtube_query_new (NULL);
+ query = GDATA_QUERY (gdata_youtube_query_new (NULL));
gdata_query_set_start_index (query, os->skip + 1);
gdata_query_set_max_results (query, os->count);
os->category_info = &categories_dir[category_index];
@@ -1310,7 +1310,7 @@ grl_youtube_source_search (GrlSource *source,
grl_operation_set_data (ss->operation_id, g_object_ref (os->cancellable));
/* Index in GData starts at 1 */
- query = gdata_youtube_query_new (ss->text);
+ query = GDATA_QUERY (gdata_youtube_query_new (ss->text));
gdata_query_set_start_index (query, os->skip + 1);
gdata_query_set_max_results (query, os->count);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]