theoradec: Drop ignored headers

Instead of finishing an empty frame, call drop_frame as we're
ignoring the header frame.
This commit is contained in:
Olivier Crête 2012-08-07 13:58:21 -07:00
parent f885829730
commit e24196ae28

View file

@ -789,6 +789,7 @@ theora_dec_decode_buffer (GstTheoraDec * dec, GstBuffer * buf,
if (packet.bytes && packet.packet[0] & 0x80) {
if (dec->have_header) {
GST_WARNING_OBJECT (GST_OBJECT (dec), "Ignoring header");
result = GST_CUSTOM_FLOW_DROP;
goto done;
}
result = theora_handle_header_packet (dec, &packet);