[totem] grilo: Throw an error when asking for page 0
- From: Bastien Nocera <hadess src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [totem] grilo: Throw an error when asking for page 0
 
- Date: Fri, 17 Jan 2014 09:12:42 +0000 (UTC)
 
commit 25296c11563e116a3cac357148a5190ffee3140e
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 16 22:10:52 2014 +0100
    grilo: Throw an error when asking for page 0
    
    We start counting pages from 1, so warn if somebody passes 0.
 src/plugins/grilo/totem-grilo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index 07c6ecf..50305b6 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -438,6 +438,7 @@ browse (TotemGriloPlugin *self,
        GrlCaps *caps;
 
        g_return_if_fail (source != NULL);
+       g_return_if_fail (page >= 1);
 
        caps = grl_source_get_caps (source, GRL_OP_BROWSE);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]