From 80924aab1569a321be5115726afc87e49c342aaf Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 19 Aug 2016 11:13:44 -0700 Subject: [PATCH] Use the new API to post flow ERROR messages on the bus https://bugzilla.gnome.org/show_bug.cgi?id=770158 --- ext/libav/gstavdemux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/libav/gstavdemux.c b/ext/libav/gstavdemux.c index 4de3756..e1316cd 100644 --- a/ext/libav/gstavdemux.c +++ b/ext/libav/gstavdemux.c @@ -1567,9 +1567,7 @@ pause: gst_ffmpegdemux_push_event (demux, gst_event_new_eos ()); } } else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) { - GST_ELEMENT_ERROR (demux, STREAM, FAILED, - ("Internal data stream error."), - ("streaming stopped, reason %s", gst_flow_get_name (ret))); + GST_ELEMENT_FLOW_ERROR (demux, ret); gst_ffmpegdemux_push_event (demux, gst_event_new_eos ()); } return; -- 2.7.4