gst/wavenc/gstwavenc.c: First process the events before deciding that negotiation was not performed.
Original commit message from CVS: * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): First process the events before deciding that negotiation was not performed.
This commit is contained in:
parent
2faacf74c8
commit
d2b5ac130b
@ -1,3 +1,9 @@
|
|||||||
|
2004-05-06 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/wavenc/gstwavenc.c: (gst_wavenc_chain):
|
||||||
|
First process the events before deciding that negotiation
|
||||||
|
was not performed.
|
||||||
|
|
||||||
2004-05-06 Wim Taymans <wim@fluendo.com>
|
2004-05-06 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/theora/Makefile.am:
|
* ext/theora/Makefile.am:
|
||||||
|
@ -605,13 +605,6 @@ gst_wavenc_chain (GstPad * pad, GstData * _data)
|
|||||||
|
|
||||||
wavenc = GST_WAVENC (gst_pad_get_parent (pad));
|
wavenc = GST_WAVENC (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
if (!wavenc->setup) {
|
|
||||||
gst_buffer_unref (buf);
|
|
||||||
GST_ELEMENT_ERROR (wavenc, CORE, NEGOTIATION, (NULL),
|
|
||||||
("encoder not initialised (input is not audio?)"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GST_IS_EVENT (buf)) {
|
if (GST_IS_EVENT (buf)) {
|
||||||
if (GST_EVENT_TYPE (buf) == GST_EVENT_EOS) {
|
if (GST_EVENT_TYPE (buf) == GST_EVENT_EOS) {
|
||||||
wavenc->pad_eos = TRUE;
|
wavenc->pad_eos = TRUE;
|
||||||
@ -634,6 +627,13 @@ gst_wavenc_chain (GstPad * pad, GstData * _data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!wavenc->setup) {
|
||||||
|
gst_buffer_unref (buf);
|
||||||
|
GST_ELEMENT_ERROR (wavenc, CORE, NEGOTIATION, (NULL),
|
||||||
|
("encoder not initialised (input is not audio?)"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (GST_PAD_IS_USABLE (wavenc->srcpad)) {
|
if (GST_PAD_IS_USABLE (wavenc->srcpad)) {
|
||||||
if (wavenc->flush_header) {
|
if (wavenc->flush_header) {
|
||||||
GstBuffer *outbuf;
|
GstBuffer *outbuf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user