From e24196ae284329b6c687c78896f6e415560f3102 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 7 Aug 2012 13:58:21 -0700 Subject: [PATCH] theoradec: Drop ignored headers Instead of finishing an empty frame, call drop_frame as we're ignoring the header frame. --- ext/theora/gsttheoradec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index f7906df..a5468a6 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -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); -- 2.7.4