summaryrefslogtreecommitdiffstats
path: root/ext/libpng
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-06-08 10:43:26 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-06-08 10:43:26 +0000
commit08d5dedbaa5344e22174d53edbd8258b9434b4c4 (patch)
tree655c7561bc1d46a165bfa9fbd67ba1fc96c50c72 /ext/libpng
parent51e52ed2cfbddb0f382d48a6cb962b6697b2cc91 (diff)
ext/: When operating in pull mode, error out correct on not-linked.
Original commit message from CVS: * ext/dv/gstdvdemux.c: (gst_dvdemux_loop): * ext/libpng/gstpngdec.c: (user_read_data), (gst_pngdec_task): When operating in pull mode, error out correct on not-linked.
Diffstat (limited to 'ext/libpng')
-rw-r--r--ext/libpng/gstpngdec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c
index f6150e88..bed0a63d 100644
--- a/ext/libpng/gstpngdec.c
+++ b/ext/libpng/gstpngdec.c
@@ -323,9 +323,9 @@ user_read_data (png_structp png_ptr, png_bytep data, png_size_t length)
return;
pause:
- GST_LOG_OBJECT (pngdec, "pausing task, reason %s", gst_flow_get_name (ret));
+ GST_INFO_OBJECT (pngdec, "pausing task, reason %s", gst_flow_get_name (ret));
gst_pad_pause_task (pngdec->sinkpad);
- if (GST_FLOW_IS_FATAL (ret)) {
+ if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
(_("Internal data stream error.")),
@@ -506,9 +506,10 @@ gst_pngdec_task (GstPad * pad)
pause:
{
- GST_LOG_OBJECT (pngdec, "pausing task, reason %s", gst_flow_get_name (ret));
+ GST_INFO_OBJECT (pngdec, "pausing task, reason %s",
+ gst_flow_get_name (ret));
gst_pad_pause_task (pngdec->sinkpad);
- if (GST_FLOW_IS_FATAL (ret)) {
+ if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
(_("Internal data stream error.")),
("stream stopped, reason %s", gst_flow_get_name (ret)));