mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 08:21:01 +00:00
Merge pull request #33 from sdroege/no-custom-error
Never return gst::FlowError::CustomError outside the element
This commit is contained in:
commit
cc63b187b9
2 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiAudioSrc {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
|
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
|
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
|
||||||
&& _settings.loss_threshold == 0
|
&& _settings.loss_threshold == 0
|
||||||
{
|
{
|
||||||
|
|
|
@ -462,7 +462,7 @@ impl BaseSrcImpl for NdiVideoSrc {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gst_element_error!(element, gst::ResourceError::Read, ["NDI frame type none or error received, assuming that the source closed the stream...."]);
|
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
|
} else if frame_type == NDIlib_frame_type_e::NDIlib_frame_type_none
|
||||||
&& _settings.loss_threshold == 0
|
&& _settings.loss_threshold == 0
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue