mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
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:
parent
def42b5514
commit
c483270f27
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue