Use the new API to post flow ERROR messages on the bus
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 19 Aug 2016 18:13:44 +0000 (11:13 -0700)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 26 Aug 2016 22:23:32 +0000 (19:23 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=770158

ext/libav/gstavdemux.c

index 4de3756..e1316cd 100644 (file)
@@ -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;