oggmux: Increase the seen header packets count when seeing a header packet
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Mar 2011 18:42:49 +0000 (19:42 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Mar 2011 18:44:41 +0000 (19:44 +0100)
This fixes muxing of Speex content and possibly other formats where the
header detection works by counting the packets.

Fixes bug #644745.

ext/ogg/gstoggmux.c

index 9016102..f2194f5 100644 (file)
@@ -835,6 +835,7 @@ gst_ogg_mux_queue_pads (GstOggMux * ogg_mux)
             GST_DEBUG_OBJECT (ogg_mux,
                 "got header buffer in control state, ignoring");
             /* just ignore */
+            pad->map.n_header_packets_seen++;
             gst_buffer_unref (buf);
             buf = NULL;
           } else {