summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkanimation.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkanimation.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkanimation.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/gdk_pixbuf/gstgdkanimation.c b/ext/gdk_pixbuf/gstgdkanimation.c
index 202ead64..97748970 100644
--- a/ext/gdk_pixbuf/gstgdkanimation.c
+++ b/ext/gdk_pixbuf/gstgdkanimation.c
@@ -345,8 +345,9 @@ gst_gdk_animation_iter_may_advance (GstGdkAnimationIter * iter)
data_amount = lseek (iter->ani->temp_fd, 0, SEEK_CUR);
g_assert (data_amount >= 0);
- g_assert (gst_element_query (gst_bin_get_by_name (GST_BIN (iter->pipeline),
- "source"), GST_QUERY_POSITION, &bytes, &offset));
+ if (!gst_element_query (gst_bin_get_by_name (GST_BIN (iter->pipeline),
+ "source"), GST_QUERY_POSITION, &bytes, &offset))
+ g_assert_not_reached ();
if (data_amount - offset > GST_GDK_BUFFER_SIZE)
return TRUE;