mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 02:03:54 +00:00
ext/faac/gstfaac.c: Don't try to flush the decoder on EOS when it was not initialized.
Original commit message from CVS: * ext/faac/gstfaac.c: (gst_faac_sink_event): Don't try to flush the decoder on EOS when it was not initialized. Fixes #498667
This commit is contained in:
parent
6691ae01e2
commit
1b2fa58301
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-11-21 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
|
* ext/faac/gstfaac.c: (gst_faac_sink_event):
|
||||||
|
Don't try to flush the decoder on EOS when it was not initialized.
|
||||||
|
Fixes #498667
|
||||||
|
|
||||||
2007-11-21 Julien Moutte <julien@fluendo.com>
|
2007-11-21 Julien Moutte <julien@fluendo.com>
|
||||||
|
|
||||||
* ext/sdl/sdlaudiosink.c: (gst_sdlaudio_sink_write): Fix build
|
* ext/sdl/sdlaudiosink.c: (gst_sdlaudio_sink_write): Fix build
|
||||||
|
|
|
@ -453,9 +453,13 @@ gst_faac_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstBuffer *outbuf;
|
GstBuffer *outbuf;
|
||||||
|
|
||||||
/* flush first */
|
if (!faac->handle)
|
||||||
|
ret = FALSE;
|
||||||
|
else
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
do {
|
|
||||||
|
/* flush first */
|
||||||
|
while (ret) {
|
||||||
if (gst_pad_alloc_buffer_and_set_caps (faac->srcpad,
|
if (gst_pad_alloc_buffer_and_set_caps (faac->srcpad,
|
||||||
GST_BUFFER_OFFSET_NONE, faac->bytes,
|
GST_BUFFER_OFFSET_NONE, faac->bytes,
|
||||||
GST_PAD_CAPS (faac->srcpad), &outbuf) == GST_FLOW_OK) {
|
GST_PAD_CAPS (faac->srcpad), &outbuf) == GST_FLOW_OK) {
|
||||||
|
@ -472,8 +476,7 @@ gst_faac_sink_event (GstPad * pad, GstEvent * event)
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (ret);
|
}
|
||||||
|
|
||||||
ret = gst_pad_event_default (pad, event);
|
ret = gst_pad_event_default (pad, event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue