MaybeAppSrc: Don't require "success" from EOS push

Gstreamer's definition of success is too narrow, and we panic on a
"flushing" result.

Addresses #13 on GitHub.
This commit is contained in:
George Hilliard committed 2020-06-18 14:42:34 -05:00
1 parent fa44f7077f
commit c836c956f8
1 file changed
+2 -1
+2 -1
View File
@@ -124,7 +124,8 @@ mod maybe_app_src {
/// Flushes data to Gstreamer on a problem communicating with the underlying video source.
pub fn on_stream_error(&mut self) {
if let Some(src) = self.try_get_src() {
src.end_of_stream().unwrap();
// Ignore "errors" from Gstreamer such as FLUSHING, which are not really errors.
let _ = src.end_of_stream();
}
}