mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
gst: src: Fix buffer pool handling in case of caps renegotiation
In case negotiation is first attempted with unfixed caps, bufferpool support was unconditionally disabled. Then at a second caps negotiation attempt it wasn't restored according to the property value.
This commit is contained in:
parent
14b7b31bd9
commit
e584cee066
1 changed files with 5 additions and 4 deletions
|
|
@ -1135,14 +1135,15 @@ handle_format_change (GstPipeWireSrc *pwsrc,
|
||||||
#ifdef HAVE_GSTREAMER_DMA_DRM
|
#ifdef HAVE_GSTREAMER_DMA_DRM
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
} else {
|
||||||
|
/* Don't provide bufferpool for audio if not requested by the
|
||||||
|
* application/user */
|
||||||
|
if (pwsrc->use_bufferpool != USE_BUFFERPOOL_YES)
|
||||||
|
pwsrc->use_bufferpool = USE_BUFFERPOOL_NO;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pwsrc->negotiated = FALSE;
|
pwsrc->negotiated = FALSE;
|
||||||
pwsrc->is_video = FALSE;
|
pwsrc->is_video = FALSE;
|
||||||
|
|
||||||
/* Don't provide bufferpool for audio if not requested by the application/user */
|
|
||||||
if (pwsrc->use_bufferpool != USE_BUFFERPOOL_YES)
|
|
||||||
pwsrc->use_bufferpool = USE_BUFFERPOOL_NO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pwsrc->caps) {
|
if (pwsrc->caps) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue