warning when event not available

Original commit message from CVS:
warning when event not available
This commit is contained in:
David I. Lehn 2002-05-26 17:36:24 +00:00
parent 2c6a121e4f
commit 9987beb5a5

View file

@ -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);