summaryrefslogtreecommitdiff
path: root/ext/gme
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-08-19 11:12:10 -0700
committerThibault Saunier <tsaunier@gnome.org>2016-08-26 19:23:31 -0300
commit2fb716409c928583ab2e8384eca261d0f45822dc (patch)
tree5f409f58b036ce3f847f46e58efb4aa525cfba05 /ext/gme
parent268c18054d47052d171b43bf6b5b5d33ae391b58 (diff)
downloadgstreamer-plugins-bad-2fb716409c928583ab2e8384eca261d0f45822dc.tar.gz
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/gme')
-rw-r--r--ext/gme/gstgme.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/gme/gstgme.c b/ext/gme/gstgme.c
index 1c5c83c41..4fb44295f 100644
--- a/ext/gme/gstgme.c
+++ b/ext/gme/gstgme.c
@@ -353,9 +353,7 @@ gst_gme_play (GstPad * pad)
if (flow_return == GST_FLOW_EOS) {
gst_pad_push_event (pad, gst_event_new_eos ());
} else if (flow_return < GST_FLOW_EOS || flow_return == GST_FLOW_NOT_LINKED) {
- GST_ELEMENT_ERROR (gme, STREAM, FAILED, ("Internal data stream error."),
- ("stream stopped, reason %s", gst_flow_get_name (flow_return)));
-
+ GST_ELEMENT_FLOW_ERROR (gme, flow_return);
gst_pad_push_event (pad, gst_event_new_eos ());
}
}