mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
ext/libpng/gstpngdec.c: If we get a fatal flow return in the loop function, first post the error message and only the...
Original commit message from CVS: * ext/libpng/gstpngdec.c: (gst_pngdec_task): If we get a fatal flow return in the loop function, first post the error message and only then send the EOS event downstream, otherwise applications might get an eos message before the error message and think everything was ok (related to #429319).
This commit is contained in:
parent
a7531984c3
commit
3f55b6e912
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-04-25 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/libpng/gstpngdec.c: (gst_pngdec_task):
|
||||||
|
If we get a fatal flow return in the loop function, first post the
|
||||||
|
error message and only then send the EOS event downstream, otherwise
|
||||||
|
applications might get an eos message before the error message and
|
||||||
|
think everything was ok (related to #429319).
|
||||||
|
|
||||||
2007-04-25 Wim Taymans <wim@fluendo.com>
|
2007-04-25 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtsp/rtspconnection.c: (rtsp_connection_receive):
|
* gst/rtsp/rtspconnection.c: (rtsp_connection_receive):
|
||||||
|
|
|
@ -508,10 +508,10 @@ pause:
|
||||||
GST_LOG_OBJECT (pngdec, "pausing task, reason %s", gst_flow_get_name (ret));
|
GST_LOG_OBJECT (pngdec, "pausing task, reason %s", gst_flow_get_name (ret));
|
||||||
gst_pad_pause_task (pngdec->sinkpad);
|
gst_pad_pause_task (pngdec->sinkpad);
|
||||||
if (GST_FLOW_IS_FATAL (ret)) {
|
if (GST_FLOW_IS_FATAL (ret)) {
|
||||||
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
|
|
||||||
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
|
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
|
||||||
(_("Internal data stream error.")),
|
(_("Internal data stream error.")),
|
||||||
("stream stopped, reason %s", gst_flow_get_name (ret)));
|
("stream stopped, reason %s", gst_flow_get_name (ret)));
|
||||||
|
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue