From c2181846c70e33cb9881a08f8eeeb19d5d9df91e Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 5 Jun 2003 22:00:54 +0000 Subject: [PATCH] fixes #114385 Original commit message from CVS: fixes #114385 --- gst/gstevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstevent.c b/gst/gstevent.c index 52d9554c03..740c80b66d 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -191,7 +191,7 @@ gst_event_new_discontinuous (gboolean new_media, GstFormat format1, ...) va_start (var_args, format1); - while (format1) { + while (format1 != GST_FORMAT_UNDEFINED && count < 8) { GST_EVENT_DISCONT_OFFSET (event, count).format = format1 & GST_SEEK_FORMAT_MASK; GST_EVENT_DISCONT_OFFSET (event, count).value = va_arg (var_args, gint64);