mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -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;
|
gboolean res;
|
||||||
PinosContext *ctx = stream->context;
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
caps = gst_caps_from_format (format);
|
caps = gst_caps_from_format (format);
|
||||||
GST_DEBUG_OBJECT (pinossrc, "we got format %" GST_PTR_FORMAT, caps);
|
GST_DEBUG_OBJECT (pinossrc, "we got format %" GST_PTR_FORMAT, caps);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue