From 9987beb5a561c342d6bc3de4b5fa0dd5a3a39fdf Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Sun, 26 May 2002 17:36:24 +0000 Subject: [PATCH] warning when event not available Original commit message from CVS: warning when event not available --- ext/a52dec/gsta52dec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index afc8087875..979c5b8a42 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -362,6 +362,11 @@ gst_a52dec_handle_event (GstA52Dec *a52dec) gst_bytestream_get_status (a52dec->bs, &remaining, &event); + if (!event) { + g_warning ("a52dec: no bytestream event"); + return; + } + switch (GST_EVENT_TYPE (event)) { case GST_EVENT_DISCONTINUOUS: gst_bytestream_flush_fast (a52dec->bs, remaining);