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.
This commit is contained in:
Mark Nauwelaerts 2008-05-12 15:26:01 +00:00
parent 2f1971acb0
commit 9ebb11bebf
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-05-12 Mark Nauwelaerts <mnauw@users.sf.net>
* gst/avi/gstavimux.c: (gst_avi_mux_pad_reset):
Do not leave fourcc stream header field empty upon reset.
Fixes #519301.
2008-05-11 Jan Schmidt <jan.schmidt@sun.com>
* docs/plugins/gst-plugins-good-plugins-docs.sgml:

2
common

@ -1 +1 @@
Subproject commit dbf8f3aeceb6e57de097951a670cd853b4886ad8
Subproject commit 2d9c09df0fe4ad3f570fea9f649cfc6c4511080d

View file

@ -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;