avimux: also set the suggested buf size for audio

We were only setting the suggested buf size for video,
we can set it for audio as well.

This and 195e14529d80ef318ce3a778c1995efb11f266cd
fix an issue that prevented seeking on large avi files
on WMP (non-recent versions).
This commit is contained in:
Thiago Santos 2009-10-30 03:13:54 -03:00
parent 831b1e958a
commit b59dc3e5fb

View file

@ -1959,11 +1959,11 @@ gst_avi_mux_do_buffer (GstAviMux * avimux, GstAviPad * avipad)
if (G_UNLIKELY (avipad->hook))
avipad->hook (avimux, avipad, data);
if (avipad->is_video) {
/* the suggested buffer size is the max frame size */
if (avipad->hdr.bufsize < GST_BUFFER_SIZE (data))
avipad->hdr.bufsize = GST_BUFFER_SIZE (data);
if (avipad->is_video) {
avimux->total_frames++;
if (avimux->is_bigfile) {