summaryrefslogtreecommitdiff
path: root/gst/midi/midiparse.c
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 /gst/midi/midiparse.c
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 'gst/midi/midiparse.c')
-rw-r--r--gst/midi/midiparse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/midi/midiparse.c b/gst/midi/midiparse.c
index d52539b3c..d58ea3f49 100644
--- a/gst/midi/midiparse.c
+++ b/gst/midi/midiparse.c
@@ -1282,9 +1282,7 @@ pause:
event = gst_event_new_eos ();
/* for fatal errors we post an error message, post the error
* first so the app knows about the error first. */
- GST_ELEMENT_ERROR (midiparse, STREAM, FAILED,
- ("Internal data flow error."),
- ("streaming task paused, reason %s (%d)", reason, ret));
+ GST_ELEMENT_FLOW_ERROR (midiparse, ret);
gst_pad_push_event (midiparse->srcpad, event);
}
}