mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
gstpinossrc: Don't crash when format is changed to NULL
This commit is contained in:
parent
3c7f1e09fb
commit
361059ed3c
1 changed files with 3 additions and 0 deletions
|
|
@ -786,6 +786,9 @@ on_format_changed (PinosListener *listener,
|
|||
gboolean res;
|
||||
PinosContext *ctx = stream->context;
|
||||
|
||||
if (!format)
|
||||
return;
|
||||
|
||||
caps = gst_caps_from_format (format);
|
||||
GST_DEBUG_OBJECT (pinossrc, "we got format %" GST_PTR_FORMAT, caps);
|
||||
res = gst_base_src_set_caps (GST_BASE_SRC (pinossrc), caps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue