theoradec: Drop ignored headers
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 7 Aug 2012 20:58:21 +0000 (13:58 -0700)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 7 Aug 2012 20:58:58 +0000 (13:58 -0700)
Instead of finishing an empty frame, call drop_frame as we're
ignoring the header frame.

ext/theora/gsttheoradec.c

index f7906df..a5468a6 100644 (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);