summaryrefslogtreecommitdiff
path: root/gst/mpegdemux
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/mpegdemux
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/mpegdemux')
-rw-r--r--gst/mpegdemux/gstmpegdemux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 68985b2ab..b608db867 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -3005,9 +3005,7 @@ pause:
}
}
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) {
- GST_ELEMENT_ERROR (demux, STREAM, FAILED,
- ("Internal data stream error."),
- ("stream stopped, reason %s", reason));
+ GST_ELEMENT_FLOW_ERROR (demux, ret);
gst_ps_demux_send_event (demux, gst_event_new_eos ());
}