mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-20 06:59:58 -05:00
pinossrc: also finish format when clearing the format
This commit is contained in:
parent
361059ed3c
commit
845ff79f9f
1 changed files with 4 additions and 1 deletions
|
|
@ -786,8 +786,11 @@ on_format_changed (PinosListener *listener,
|
|||
gboolean res;
|
||||
PinosContext *ctx = stream->context;
|
||||
|
||||
if (!format)
|
||||
if (format == NULL) {
|
||||
GST_DEBUG_OBJECT (pinossrc, "clear format");
|
||||
pinos_stream_finish_format (pinossrc->stream, SPA_RESULT_OK, NULL, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
caps = gst_caps_from_format (format);
|
||||
GST_DEBUG_OBJECT (pinossrc, "we got format %" GST_PTR_FORMAT, caps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue