[grilo] doc: Fix documentation about GRL_TYPE_FILTER_NONE



commit 5b88159eaa8d06a5f17c092cbb69b79e62d48f2b
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Wed Aug 21 00:07:36 2013 +0200

    doc: Fix documentation about GRL_TYPE_FILTER_NONE
    
    GRL_TYPE_FILTER_NONE means "do not allow any content" (only
    GrlMediaBox), while GRL_TYPE_FILTER_ALL means "allow all content".
    
    This commit clarifies it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706412

 src/grl-caps.c |    4 ++--
 src/grl-caps.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/grl-caps.c b/src/grl-caps.c
index ace6c27..59944d3 100644
--- a/src/grl-caps.c
+++ b/src/grl-caps.c
@@ -92,7 +92,7 @@ grl_caps_init (GrlCaps *self)
 
   /* by default, type filtering is not considered to be supported. The source
    * has to explicitly modify its caps. */
-  self->priv->type_filter = GRL_TYPE_FILTER_NONE;
+  self->priv->type_filter = GRL_TYPE_FILTER_ALL;
   self->priv->key_filter = NULL;
   self->priv->key_range_filter = NULL;
 }
@@ -178,7 +178,7 @@ grl_caps_test_option (GrlCaps *caps, const gchar *key, const GValue *value)
 GrlTypeFilter
 grl_caps_get_type_filter (GrlCaps *caps)
 {
-  g_return_val_if_fail (caps != NULL, GRL_TYPE_FILTER_NONE);
+  g_return_val_if_fail (caps != NULL, GRL_TYPE_FILTER_ALL);
 
   return caps->priv->type_filter;
 }
diff --git a/src/grl-caps.h b/src/grl-caps.h
index cec5fd9..91d4d4e 100644
--- a/src/grl-caps.h
+++ b/src/grl-caps.h
@@ -63,10 +63,11 @@ typedef struct {
 
 /**
  * GrlTypeFilter:
- * @GRL_TYPE_FILTER_NONE: no type filtering
+ * @GRL_TYPE_FILTER_NONE: allow no content (only #GrlMediaBox)
  * @GRL_TYPE_FILTER_AUDIO: allow audio content
  * @GRL_TYPE_FILTER_VIDEO: allow video content
  * @GRL_TYPE_FILTER_IMAGE: allow image content
+ * @GRL_TYPE_FILTER_ALL: allow any type of content
  *
  * Type of media to allow.
  **/


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