Skip to content

webrtcsink: log error before tokio panics

The element makes use of tokio internally, and in particular needs to block_on when transitioning to GST_STATE_NULL. This causes a panic if set_state(NULL) was called from another runtime.

As users of GStreamer shouldn't be making synchronous state changes from an asynchronous context in the first place, let's log an error and suggest an alternative before letting tokio panic.

Merge request reports

Loading