mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-27 12:30:28 +00:00
threadshare: fix Transition naming
This commit is contained in:
parent
725eb0a093
commit
244f6dd6f7
2 changed files with 268 additions and 269 deletions
File diff suppressed because it is too large
Load diff
|
@ -41,7 +41,7 @@ use std::u32;
|
|||
use tokio::io::AsyncReadExt;
|
||||
|
||||
use crate::runtime::prelude::*;
|
||||
use crate::runtime::task::Transition;
|
||||
use crate::runtime::task;
|
||||
use crate::runtime::{Context, PadSrc, PadSrcRef, PadSrcWeak, Task, TaskState};
|
||||
|
||||
use super::socket::{Socket, SocketError, SocketRead};
|
||||
|
@ -391,21 +391,21 @@ impl TaskImpl for TcpClientSrcTask {
|
|||
.boxed()
|
||||
}
|
||||
|
||||
fn handle_hook_error(
|
||||
fn handle_action_error(
|
||||
&mut self,
|
||||
transition: Transition,
|
||||
trigger: task::Trigger,
|
||||
state: TaskState,
|
||||
err: gst::ErrorMessage,
|
||||
) -> BoxFuture<'_, Transition> {
|
||||
) -> BoxFuture<'_, task::Trigger> {
|
||||
async move {
|
||||
match transition {
|
||||
Transition::Prepare => {
|
||||
match trigger {
|
||||
task::Trigger::Prepare => {
|
||||
gst_error!(CAT, "Task preparation failed: {:?}", err);
|
||||
self.element.post_error_message(&err);
|
||||
|
||||
Transition::Error
|
||||
task::Trigger::Error
|
||||
}
|
||||
other => unreachable!("Hook error {:?} in state {:?}", other, state),
|
||||
other => unreachable!("Action error for {:?} in state {:?}", other, state),
|
||||
}
|
||||
}
|
||||
.boxed()
|
||||
|
|
Loading…
Reference in a new issue