Fix for #154773 - fixes playback of small .wav files

Original commit message from CVS:
Fix for #154773 - fixes playback of small .wav files
This commit is contained in:
Thomas Vander Stichele 2005-01-04 11:09:19 +00:00
parent 9de0a0af10
commit bb6c6585c8
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-01-04 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstplaybasebin.c:
* gst/wavparse/gstwavparse.c:
Fix for #154773 - fixes playback of small .wav files
2005-01-03 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: Ronald Bultje <rbultje@ronald.bitfreak.net>

View file

@ -561,6 +561,7 @@ gst_wavparse_fmt (GstWavParse * wav)
gst_pad_set_explicit_caps (wav->srcpad, caps);
gst_caps_free (caps);
gst_element_add_pad (GST_ELEMENT (wav), wav->srcpad);
gst_element_no_more_pads (GST_ELEMENT (wav));
GST_DEBUG ("frequency %d, channels %d", wav->rate, wav->channels);
} else {
GST_ELEMENT_ERROR (wav, STREAM, TYPE_NOT_FOUND, (NULL), (NULL));