Never return gst::FlowError::CustomError outside the element

It's for internal-usage and must be converted to a normal error at the
boundary to the base classes.
This commit is contained in:
Sebastian Dröge 2019-07-09 19:24:40 +03:00
parent def42b5514
commit c483270f27
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiAudioSrc {
continue;
}
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
return Err(gst::FlowError::CustomError);
return Err(gst::FlowError::Error);
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
&& _settings.loss_threshold == 0
{

View file

@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiVideoSrc {
continue;
}
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
return Err(gst::FlowError::CustomError);
return Err(gst::FlowError::Error);
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
&& _settings.loss_threshold == 0
{