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
48a959bf2e
commit
99b94015a7
1 changed files with 5 additions and 4 deletions
|
|
@ -1127,14 +1127,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