[grilo-plugins/0.1.x] plugins: Fix commit 5e66fa43bd



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

    plugins: Fix commit 5e66fa43bd

 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 ddbbcd0..8ed66a8 100644
--- a/src/media/bookmarks/grl-bookmarks.c
+++ b/src/media/bookmarks/grl-bookmarks.c
@@ -329,13 +329,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 de765f5..39a6d56 100644
--- a/src/media/filesystem/grl-filesystem.c
+++ b/src/media/filesystem/grl-filesystem.c
@@ -254,19 +254,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 ab995aa..8351fe3 100644
--- a/src/media/podcasts/grl-podcasts.c
+++ b/src/media/podcasts/grl-podcasts.c
@@ -559,13 +559,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 a688766..195237d 100644
--- a/src/media/youtube/grl-youtube.c
+++ b/src/media/youtube/grl-youtube.c
@@ -1223,7 +1223,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]