[grilo-plugins] all: Handle "support-media" in sources



commit 9e78b93603aca70ac5adc82d0dbd7cd9b4c983c6
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Oct 29 18:21:31 2012 +0000

    all: Handle "support-media" in sources
    
    Make each source to report the type of media it handles.

 src/apple-trailers/grl-apple-trailers.c |    1 +
 src/bliptv/grl-bliptv.c                 |    1 +
 src/flickr/grl-flickr.c                 |    1 +
 src/jamendo/grl-jamendo.c               |    1 +
 src/shoutcast/grl-shoutcast.c           |    1 +
 src/vimeo/grl-vimeo.c                   |    1 +
 src/youtube/grl-youtube.c               |    1 +
 7 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/apple-trailers/grl-apple-trailers.c b/src/apple-trailers/grl-apple-trailers.c
index f1aab9a..9da3f32 100644
--- a/src/apple-trailers/grl-apple-trailers.c
+++ b/src/apple-trailers/grl-apple-trailers.c
@@ -162,6 +162,7 @@ grl_apple_trailers_source_new (gboolean high_definition,
                          "source-id", SOURCE_ID,
                          "source-name", SOURCE_NAME,
                          "source-desc", SOURCE_DESC,
+                         "supported-media", GRL_MEDIA_TYPE_VIDEO,
                          "high-definition", high_definition,
 			 "large-poster", xlarge,
                          NULL);
diff --git a/src/bliptv/grl-bliptv.c b/src/bliptv/grl-bliptv.c
index ea542d4..d337dbb 100644
--- a/src/bliptv/grl-bliptv.c
+++ b/src/bliptv/grl-bliptv.c
@@ -135,6 +135,7 @@ grl_bliptv_source_new (void)
                        "source-id", SOURCE_ID,
                        "source-name", SOURCE_NAME,
                        "source-desc", SOURCE_DESC,
+                       "supported-media", GRL_MEDIA_TYPE_VIDEO,
                        NULL);
 }
 
diff --git a/src/flickr/grl-flickr.c b/src/flickr/grl-flickr.c
index 79c49e5..baa23d8 100644
--- a/src/flickr/grl-flickr.c
+++ b/src/flickr/grl-flickr.c
@@ -189,6 +189,7 @@ grl_flickr_source_public_new (const gchar *flickr_api_key,
                          "source-id", PUBLIC_SOURCE_ID,
                          "source-name", PUBLIC_SOURCE_NAME,
                          "source-desc", PUBLIC_SOURCE_DESC,
+                         "supported-media", GRL_MEDIA_TYPE_IMAGE,
                          NULL);
   source->priv->flickr = g_flickr_new (flickr_api_key, flickr_secret, NULL);
 
diff --git a/src/jamendo/grl-jamendo.c b/src/jamendo/grl-jamendo.c
index b7bffbc..4021013 100644
--- a/src/jamendo/grl-jamendo.c
+++ b/src/jamendo/grl-jamendo.c
@@ -225,6 +225,7 @@ grl_jamendo_source_new (void)
 		       "source-id", SOURCE_ID,
 		       "source-name", SOURCE_NAME,
 		       "source-desc", SOURCE_DESC,
+		       "supported-media", GRL_MEDIA_TYPE_AUDIO,
 		       NULL);
 }
 
diff --git a/src/shoutcast/grl-shoutcast.c b/src/shoutcast/grl-shoutcast.c
index 2702604..f8c9cfb 100644
--- a/src/shoutcast/grl-shoutcast.c
+++ b/src/shoutcast/grl-shoutcast.c
@@ -179,6 +179,7 @@ grl_shoutcast_source_new (const gchar *dev_key)
                           "source-id", SOURCE_ID,
                           "source-name", SOURCE_NAME,
                           "source-desc", SOURCE_DESC,
+                          "supported-media", GRL_MEDIA_TYPE_AUDIO,
                           NULL);
 
   source->priv->dev_key = g_strdup (dev_key);
diff --git a/src/vimeo/grl-vimeo.c b/src/vimeo/grl-vimeo.c
index 21043ac..ef72b07 100644
--- a/src/vimeo/grl-vimeo.c
+++ b/src/vimeo/grl-vimeo.c
@@ -158,6 +158,7 @@ grl_vimeo_source_new (void)
                        "source-id", SOURCE_ID,
                        "source-name", SOURCE_NAME,
                        "source-desc", SOURCE_DESC,
+                       "supported-media", GRL_MEDIA_TYPE_VIDEO,
                        NULL);
 }
 
diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index e37224c..240faf2 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -331,6 +331,7 @@ grl_youtube_source_new (const gchar *api_key, const gchar *client_id, const gcha
 					     "auto-split-threshold",
 					     YOUTUBE_MAX_CHUNK,
                                              "yt-service", service,
+                                             "supported-media", GRL_MEDIA_TYPE_VIDEO,
 					     NULL));
 
   /* Set up quvi */



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