mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
gst/base/gstbasesrc.c: Post error messages on errors.
Original commit message from CVS: * gst/base/gstbasesrc.c: (gst_base_src_loop): Post error messages on errors.
This commit is contained in:
parent
9ace74670e
commit
40a158fa44
3 changed files with 25 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-07-14 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/base/gstbasesrc.c: (gst_base_src_loop):
|
||||||
|
Post error messages on errors.
|
||||||
|
|
||||||
2005-07-14 Wim Taymans <wim@fluendo.com>
|
2005-07-14 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstcaps.c: (gst_caps_do_simplify):
|
* gst/gstcaps.c: (gst_caps_do_simplify):
|
||||||
|
|
|
@ -678,11 +678,20 @@ pause:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "pausing task");
|
GST_DEBUG_OBJECT (src, "pausing task");
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
|
if (GST_FLOW_IS_FATAL (ret)) {
|
||||||
|
/* for fatal errors we post an error message */
|
||||||
|
GST_ELEMENT_ERROR (src, STREAM, STOPPED,
|
||||||
|
("streaming stopped, reason %d", ret),
|
||||||
|
("streaming stopped, reason %d", ret));
|
||||||
|
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "got error, pausing task");
|
GST_ELEMENT_ERROR (src, STREAM, STOPPED,
|
||||||
|
("internal: element returned NULL buffer"),
|
||||||
|
("internal: element returned NULL buffer"));
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -678,11 +678,20 @@ pause:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "pausing task");
|
GST_DEBUG_OBJECT (src, "pausing task");
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
|
if (GST_FLOW_IS_FATAL (ret)) {
|
||||||
|
/* for fatal errors we post an error message */
|
||||||
|
GST_ELEMENT_ERROR (src, STREAM, STOPPED,
|
||||||
|
("streaming stopped, reason %d", ret),
|
||||||
|
("streaming stopped, reason %d", ret));
|
||||||
|
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (src, "got error, pausing task");
|
GST_ELEMENT_ERROR (src, STREAM, STOPPED,
|
||||||
|
("internal: element returned NULL buffer"),
|
||||||
|
("internal: element returned NULL buffer"));
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
gst_pad_push_event (pad, gst_event_new (GST_EVENT_EOS));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue