warning when event not available
Original commit message from CVS: warning when event not available
This commit is contained in:
parent
2c6a121e4f
commit
9987beb5a5
@ -362,6 +362,11 @@ gst_a52dec_handle_event (GstA52Dec *a52dec)
|
|||||||
|
|
||||||
gst_bytestream_get_status (a52dec->bs, &remaining, &event);
|
gst_bytestream_get_status (a52dec->bs, &remaining, &event);
|
||||||
|
|
||||||
|
if (!event) {
|
||||||
|
g_warning ("a52dec: no bytestream event");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_DISCONTINUOUS:
|
case GST_EVENT_DISCONTINUOUS:
|
||||||
gst_bytestream_flush_fast (a52dec->bs, remaining);
|
gst_bytestream_flush_fast (a52dec->bs, remaining);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user