[totem] grilo: Hide non-video sources
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Hide non-video sources
- Date: Wed, 8 May 2013 10:36:06 +0000 (UTC)
commit c497a32fc25fe90731ff61d497695e5a3aaf12ad
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 7 16:37:34 2013 +0200
grilo: Hide non-video sources
Sources such as Jamendo should not show up in Totem, as they
only offer audio media.
src/plugins/grilo/totem-grilo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 9a4aece..727da73 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -805,7 +805,8 @@ source_added_cb (GrlRegistry *registry,
TotemGriloPlugin *self;
GrlSupportedOps ops;
- if (source_is_blacklisted (source)) {
+ if (source_is_blacklisted (source) ||
+ !(grl_source_get_supported_media (source) & GRL_MEDIA_TYPE_VIDEO)) {
grl_registry_unregister_source (registry,
source,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]