[totem] grilo: More assertions for unsupported items
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: More assertions for unsupported items
- Date: Tue, 21 Jan 2014 18:59:02 +0000 (UTC)
commit c024092bed33981c4bd068a5795b7b334b2286ed
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 21 19:58:26 2014 +0100
grilo: More assertions for unsupported items
src/plugins/grilo/totem-grilo.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index deb7df3..b02deb3 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -479,7 +479,6 @@ browse_cb (GrlSource *source,
-1);
}
- /* Filter images */
if (GRL_IS_MEDIA_IMAGE (media) ||
GRL_IS_MEDIA_AUDIO (media)) {
/* This isn't supposed to happen as we filter for videos */
@@ -629,11 +628,11 @@ search_cb (GrlSource *source,
if (media != NULL) {
self->priv->search_remaining--;
- /* Filter images */
+
if (GRL_IS_MEDIA_IMAGE (media) ||
GRL_IS_MEDIA_AUDIO (media)) {
- g_object_unref (media);
- goto out;
+ /* This isn't supposed to happen as we filter for videos */
+ g_assert_not_reached ();
}
add_local_metadata (self, media);
@@ -643,7 +642,6 @@ search_cb (GrlSource *source,
g_object_unref (media);
}
-out:
if (remaining == 0) {
self->priv->search_id = 0;
gtk_widget_set_sensitive (self->priv->search_entry, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]