mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
STOPPED->FAILED
Original commit message from CVS: STOPPED->FAILED
This commit is contained in:
parent
512eb8ab25
commit
d006b0680f
3 changed files with 12 additions and 6 deletions
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
|
#include <gst/gst-i18n-plugin.h>
|
||||||
|
|
||||||
static GstElementDetails gst_pngdec_details = {
|
static GstElementDetails gst_pngdec_details = {
|
||||||
"PNG decoder",
|
"PNG decoder",
|
||||||
|
@ -291,8 +292,9 @@ pause:
|
||||||
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_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
|
||||||
GST_ELEMENT_ERROR (pngdec, STREAM, STOPPED,
|
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
|
||||||
(NULL), ("stream stopped, reason %s", gst_flow_get_name (ret)));
|
(_("Internal data stream error.")),
|
||||||
|
("stream stopped, reason %s", gst_flow_get_name (ret)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,8 +438,9 @@ pause:
|
||||||
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_pad_push_event (pngdec->srcpad, gst_event_new_eos ());
|
||||||
GST_ELEMENT_ERROR (pngdec, STREAM, STOPPED,
|
GST_ELEMENT_ERROR (pngdec, STREAM, FAILED,
|
||||||
(NULL), ("stream stopped, reason %s", gst_flow_get_name (ret)));
|
(_("Internal data stream error.")),
|
||||||
|
("stream stopped, reason %s", gst_flow_get_name (ret)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "gstwavparse.h"
|
#include "gstwavparse.h"
|
||||||
#include "gst/riff/riff-ids.h"
|
#include "gst/riff/riff-ids.h"
|
||||||
#include "gst/riff/riff-media.h"
|
#include "gst/riff/riff-media.h"
|
||||||
|
#include <gst/gst-i18n-plugin.h>
|
||||||
|
|
||||||
#ifndef G_MAXUINT32
|
#ifndef G_MAXUINT32
|
||||||
#define G_MAXUINT32 0xffffffff
|
#define G_MAXUINT32 0xffffffff
|
||||||
|
@ -1027,8 +1028,8 @@ pause:
|
||||||
gst_pad_pause_task (wav->sinkpad);
|
gst_pad_pause_task (wav->sinkpad);
|
||||||
if (GST_FLOW_IS_FATAL (ret)) {
|
if (GST_FLOW_IS_FATAL (ret)) {
|
||||||
/* for fatal errors we post an error message */
|
/* for fatal errors we post an error message */
|
||||||
GST_ELEMENT_ERROR (wav, STREAM, STOPPED,
|
GST_ELEMENT_ERROR (wav, STREAM, FAILED,
|
||||||
("streaming stopped, reason %s", gst_flow_get_name (ret)),
|
(_("Internal data stream error.")),
|
||||||
("streaming stopped, reason %s", gst_flow_get_name (ret)));
|
("streaming stopped, reason %s", gst_flow_get_name (ret)));
|
||||||
gst_pad_push_event (wav->srcpad, gst_event_new_eos ());
|
gst_pad_push_event (wav->srcpad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
ext/libpng/gstpngdec.c
|
||||||
gst/avi/gstavimux.c
|
gst/avi/gstavimux.c
|
||||||
|
gst/wavparse/gstwavparse.c
|
||||||
sys/oss/gstossmixer.c
|
sys/oss/gstossmixer.c
|
||||||
|
|
Loading…
Reference in a new issue