modules/media/src/main/native/gstreamer/gstreamer-lite/gstreamer/plugins/elements/gstqueue.c
Print this page
@@ -1296,10 +1296,16 @@
(_("Internal data flow error.")),
("streaming task paused, reason %s (%d)",
gst_flow_get_name (ret), ret));
gst_pad_push_event (queue->srcpad, gst_event_new_eos ());
}
+#ifdef GSTREAMER_LITE
+ else if (ret == GST_FLOW_ERROR) { // Fail immediately even if there is no eos
+ GST_ELEMENT_ERROR (queue, STREAM, FAILED, (_("Internal data flow error.")),
+ ("streaming task paused, reason %s (%d)", gst_flow_get_name (ret), ret));
+ }
+#endif
return;
}
}
static gboolean