diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2008-05-12 15:26:01 +0000 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2008-05-12 15:26:01 +0000 |
commit | 9ebb11bebf7cb98c953b7bd2ec79080d42818480 (patch) | |
tree | 7fe4f64724c9038ca124bc156d875c1a4db04353 /gst/avi/gstavimux.c | |
parent | 2f1971acb04d370035d2a377bbec8e96891cf257 (diff) |
gst/avi/gstavimux.c: Do not leave fourcc stream header field empty upon reset.
Original commit message from CVS:
* gst/avi/gstavimux.c: (gst_avi_mux_pad_reset):
Do not leave fourcc stream header field empty upon reset.
Fixes #519301.
Diffstat (limited to 'gst/avi/gstavimux.c')
-rw-r--r-- | gst/avi/gstavimux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index d846fc1d..c9a75bd9 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -314,8 +314,6 @@ gst_avi_mux_pad_reset (GstAviPad * avipad, gboolean free) { /* generic part */ memset (&(avipad->hdr), 0, sizeof (gst_riff_strh)); - avipad->hdr.rate = 1; - avipad->hdr.quality = 0xFFFFFFFF; memset (&(avipad->idx[0]), 0, sizeof (avipad->idx)); @@ -329,6 +327,7 @@ gst_avi_mux_pad_reset (GstAviPad * avipad, gboolean free) if (avipad->is_video) { GstAviVideoPad *vidpad = (GstAviVideoPad *) avipad; + avipad->hdr.type = GST_MAKE_FOURCC ('v', 'i', 'd', 's'); if (vidpad->vids_codec_data) { gst_buffer_unref (vidpad->vids_codec_data); vidpad->vids_codec_data = NULL; @@ -338,6 +337,7 @@ gst_avi_mux_pad_reset (GstAviPad * avipad, gboolean free) } else { GstAviAudioPad *audpad = (GstAviAudioPad *) avipad; + avipad->hdr.type = GST_MAKE_FOURCC ('a', 'u', 'd', 's'); if (audpad->auds_codec_data) { gst_buffer_unref (audpad->auds_codec_data); audpad->auds_codec_data = NULL; |