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:
1 parent
fa44f7077f
commit
c836c956f8
1 file changed
+2
-1
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user