[grilo-plugins] plugins: Fix commit b92c70



commit b553a6d23938061463611f2f4d3a75861af1e96e
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Jul 13 23:23:13 2012 +0000

    plugins: Fix commit b92c70

 src/media/bookmarks/grl-bookmarks.c   |    4 ++--
 src/media/filesystem/grl-filesystem.c |    6 +++---
 src/media/podcasts/grl-podcasts.c     |    4 ++--
 src/media/youtube/grl-youtube.c       |    2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/media/bookmarks/grl-bookmarks.c b/src/media/bookmarks/grl-bookmarks.c
index f0ed9f2..8dc10e2 100644
--- a/src/media/bookmarks/grl-bookmarks.c
+++ b/src/media/bookmarks/grl-bookmarks.c
@@ -337,13 +337,13 @@ grl_bookmarks_source_finalize (GObject *object)
 static gboolean
 mime_is_video (const gchar *mime)
 {
-  return mime && g_str_has_prefix (mime, "video/") != NULL;
+  return mime && g_str_has_prefix (mime, "video/");
 }
 
 static gboolean
 mime_is_audio (const gchar *mime)
 {
-  return mime && g_str_has_prefix (mime, "audio/") != NULL;
+  return mime && g_str_has_prefix (mime, "audio/");
 }
 
 static GrlMedia *
diff --git a/src/media/filesystem/grl-filesystem.c b/src/media/filesystem/grl-filesystem.c
index 9110f9e..1f137a8 100644
--- a/src/media/filesystem/grl-filesystem.c
+++ b/src/media/filesystem/grl-filesystem.c
@@ -258,19 +258,19 @@ static void cancel_monitors (GrlFilesystemSource *fs_source);
 static gboolean
 mime_is_video (const gchar *mime)
 {
-  return g_str_has_prefix (mime, "video/") != NULL;
+  return g_str_has_prefix (mime, "video/");
 }
 
 static gboolean
 mime_is_audio (const gchar *mime)
 {
-  return g_str_has_prefix (mime, "audio/") != NULL;
+  return g_str_has_prefix (mime, "audio/");
 }
 
 static gboolean
 mime_is_image (const gchar *mime)
 {
-  return g_str_has_prefix (mime, "image/") != NULL;
+  return g_str_has_prefix (mime, "image/");
 }
 
 static gboolean
diff --git a/src/media/podcasts/grl-podcasts.c b/src/media/podcasts/grl-podcasts.c
index 6fd0ecb..b4953a9 100644
--- a/src/media/podcasts/grl-podcasts.c
+++ b/src/media/podcasts/grl-podcasts.c
@@ -545,13 +545,13 @@ duration_to_seconds (const gchar *str)
 static gboolean
 mime_is_video (const gchar *mime)
 {
-  return mime && g_str_has_prefix (mime, "video/") != NULL;
+  return mime && g_str_has_prefix (mime, "video/");
 }
 
 static gboolean
 mime_is_audio (const gchar *mime)
 {
-  return mime && g_str_has_prefix (mime, "audio/") != NULL;
+  return mime && g_str_has_prefix (mime, "audio/");
 }
 
 static gchar *
diff --git a/src/media/youtube/grl-youtube.c b/src/media/youtube/grl-youtube.c
index c2988c9..7068d69 100644
--- a/src/media/youtube/grl-youtube.c
+++ b/src/media/youtube/grl-youtube.c
@@ -1228,7 +1228,7 @@ get_video_id_from_url (const gchar *url)
     return NULL;
   }
 
-  marker = g_str_has_prefix (url, YOUTUBE_WATCH_URL);
+  marker = strstr (url, YOUTUBE_WATCH_URL);
   if (!marker) {
     return NULL;
   }



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