summaryrefslogtreecommitdiffstats
path: root/ext/libpng
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-10-23 11:07:10 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-10-23 11:07:10 +0000
commitd006b0680f9e1c6dde993efa56dafde61d51429f (patch)
tree874f117293ef6bc312851b83b30e506da58939b6 /ext/libpng
parent512eb8ab25fd06d9442a8d9a72a6b172551afddb (diff)
STOPPED->FAILED
Original commit message from CVS: STOPPED->FAILED
Diffstat (limited to 'ext/libpng')
-rw-r--r--ext/libpng/gstpngdec.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c
index 317eea5d..7edd8e0d 100644
--- a/ext/libpng/gstpngdec.c
+++ b/ext/libpng/gstpngdec.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <gst/video/video.h>
+#include <gst/gst-i18n-plugin.h>
static GstElementDetails gst_pngdec_details = {
"PNG decoder",
@@ -291,8 +292,9 @@ pause:
gst_pad_pause_task (pngdec->sinkpad);
if (GST_FLOW_IS_FATAL (ret)) {
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
- GST_ELEMENT_ERROR (pngdec, STREAM, STOPPED,
- (NULL), ("stream stopped, reason %s", gst_flow_get_name (ret)));
+ GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
+ (_("Internal data stream error.")),
+ ("stream stopped, reason %s", gst_flow_get_name (ret)));
}
}
@@ -436,8 +438,9 @@ pause:
gst_pad_pause_task (pngdec->sinkpad);
if (GST_FLOW_IS_FATAL (ret)) {
gst_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
- GST_ELEMENT_ERROR (pngdec, STREAM, STOPPED,
- (NULL), ("stream stopped, reason %s", gst_flow_get_name (ret)));
+ GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
+ (_("Internal data stream error.")),
+ ("stream stopped, reason %s", gst_flow_get_name (ret)));
}
}