#include <string.h>
#include <gst/video/video.h>
+#include <gst/gst-i18n-plugin.h>
static GstElementDetails gst_pngdec_details = {
"PNG decoder",
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)));
}
}
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)));
}
}
#include "gstwavparse.h"
#include "gst/riff/riff-ids.h"
#include "gst/riff/riff-media.h"
+#include <gst/gst-i18n-plugin.h>
#ifndef G_MAXUINT32
#define G_MAXUINT32 0xffffffff
gst_pad_pause_task (wav->sinkpad);
if (GST_FLOW_IS_FATAL (ret)) {
/* for fatal errors we post an error message */
- GST_ELEMENT_ERROR (wav, STREAM, STOPPED,
- ("streaming stopped, reason %s", gst_flow_get_name (ret)),
+ GST_ELEMENT_ERROR (wav, STREAM, FAILED,
+ (_("Internal data stream error.")),
("streaming stopped, reason %s", gst_flow_get_name (ret)));
gst_pad_push_event (wav->srcpad, gst_event_new_eos ());
}