gst/avi/gstavimux.c: Send an initial BYTE segment to inform downstream of later seeki...
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 13 May 2008 20:25:20 +0000 (20:25 +0000)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 13 May 2008 20:25:20 +0000 (20:25 +0000)
Original commit message from CVS:
* gst/avi/gstavimux.c: (gst_avi_mux_start_file):
Send an initial BYTE segment to inform downstream of later seeking,
and to forego sync attempts.

ChangeLog
gst/avi/gstavimux.c

index f828565..a9e50f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-13  Mark Nauwelaerts  <mnauw@users.sf.net>
+
+       * gst/avi/gstavimux.c: (gst_avi_mux_start_file):
+       Send an initial BYTE segment to inform downstream of later seeking,
+       and to forego sync attempts.
+
 2008-05-13  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/rtp/gstrtpg729depay.c: (gst_rtp_g729_depay_setcaps):
index c9a75bd..f301e97 100644 (file)
@@ -1417,6 +1417,10 @@ gst_avi_mux_start_file (GstAviMux * avimux)
     }
   }
 
+  /* let downstream know we think in BYTES and expect to do seeking later on */
+  gst_pad_push_event (avimux->srcpad,
+      gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_BYTES, 0, -1, 0));
+
   /* header */
   avimux->avi_hdr.streams = g_slist_length (avimux->sinkpads);
   avimux->is_bigfile = FALSE;