mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-02 23:38:45 +00:00
threadshare: src elements: don't reset configured_caps
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/113
This commit is contained in:
parent
8e38d861b4
commit
4cba9d1e53
3 changed files with 6 additions and 9 deletions
|
@ -167,9 +167,8 @@ impl AppSrcPadHandler {
|
|||
.caps = caps;
|
||||
}
|
||||
|
||||
fn reset(&self) {
|
||||
fn reset_state(&self) {
|
||||
*self.0.state.try_lock().expect("State locked elsewhere") = Default::default();
|
||||
*self.0.configured_caps.lock().unwrap() = None;
|
||||
}
|
||||
|
||||
fn set_need_segment(&self) {
|
||||
|
@ -445,7 +444,7 @@ impl AppSrc {
|
|||
gst_debug!(CAT, obj: element, "Stopping");
|
||||
|
||||
self.flush(element);
|
||||
self.src_pad_handler.reset();
|
||||
self.src_pad_handler.reset_state();
|
||||
*state = AppSrcState::RejectBuffers;
|
||||
|
||||
gst_debug!(CAT, obj: element, "Stopped");
|
||||
|
|
|
@ -206,9 +206,8 @@ impl TcpClientSrcPadHandler {
|
|||
.caps = caps;
|
||||
}
|
||||
|
||||
fn reset(&self) {
|
||||
fn reset_state(&self) {
|
||||
*self.0.state.try_lock().expect("State locked elsewhere") = Default::default();
|
||||
*self.0.configured_caps.lock().unwrap() = None;
|
||||
}
|
||||
|
||||
fn set_need_segment(&self) {
|
||||
|
@ -460,7 +459,7 @@ impl TcpClientSrc {
|
|||
gst_debug!(CAT, obj: element, "Stopping");
|
||||
|
||||
self.task.stop();
|
||||
self.src_pad_handler.reset();
|
||||
self.src_pad_handler.reset_state();
|
||||
|
||||
gst_debug!(CAT, obj: element, "Stopped");
|
||||
|
||||
|
|
|
@ -255,9 +255,8 @@ impl UdpSrcPadHandler {
|
|||
state.retrieve_sender_address = retrieve_sender_address;
|
||||
}
|
||||
|
||||
fn reset(&self) {
|
||||
fn reset_state(&self) {
|
||||
*self.0.state.try_lock().expect("State locked elsewhere") = Default::default();
|
||||
*self.0.configured_caps.lock().unwrap() = None;
|
||||
}
|
||||
|
||||
fn set_need_segment(&self) {
|
||||
|
@ -631,7 +630,7 @@ impl UdpSrc {
|
|||
gst_debug!(CAT, obj: element, "Stopping");
|
||||
|
||||
self.task.stop();
|
||||
self.src_pad_handler.reset();
|
||||
self.src_pad_handler.reset_state();
|
||||
|
||||
gst_debug!(CAT, obj: element, "Stopped");
|
||||
|
||||
|
|
Loading…
Reference in a new issue