diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-08-19 11:12:10 -0700 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-08-26 19:23:31 -0300 |
commit | 2fb716409c928583ab2e8384eca261d0f45822dc (patch) | |
tree | 5f409f58b036ce3f847f46e58efb4aa525cfba05 /ext/sndfile | |
parent | 268c18054d47052d171b43bf6b5b5d33ae391b58 (diff) |
Use the new API to post flow ERROR messages on the bus
https://bugzilla.gnome.org/show_bug.cgi?id=770158
Diffstat (limited to 'ext/sndfile')
-rw-r--r-- | ext/sndfile/gstsfsink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/sndfile/gstsfsink.c b/ext/sndfile/gstsfsink.c index 78f709838..219f1a9aa 100644 --- a/ext/sndfile/gstsfsink.c +++ b/ext/sndfile/gstsfsink.c @@ -433,9 +433,7 @@ paused: if (result == GST_FLOW_UNEXPECTED) { gst_pad_send_event (pad, gst_event_new_eos ()); } else if (result < GST_FLOW_UNEXPECTED || result == GST_FLOW_NOT_LINKED) { - GST_ELEMENT_ERROR (basesink, STREAM, FAILED, - (_("Internal data stream error.")), - ("stream stopped, reason %s", gst_flow_get_name (result))); + GST_ELEMENT_FLOW_ERROR (basesink, result); gst_pad_send_event (pad, gst_event_new_eos ()); } gst_object_unref (this); |