mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
v4l2: Re-enable first buffer skip for jpeg types
The workaround is typically needed with usb-cameras using jpeg streams.
Re-enabling the skip shouldn't affect what the commit was trying to do,
i.e. fix encoded streams like h264 etc.
Fixes: bcf0c0cf8 (v4l2: only skip buffer for raw formats)
This commit is contained in:
parent
1e18cded75
commit
e387772dc2
1 changed files with 3 additions and 1 deletions
|
|
@ -1873,7 +1873,9 @@ static int spa_v4l2_stream_on(struct impl *this)
|
|||
|
||||
spa_log_debug(this->log, "starting");
|
||||
|
||||
if (port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_raw)
|
||||
if (port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_raw ||
|
||||
port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_mjpg ||
|
||||
port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_jpeg)
|
||||
port->first_buffer = true;
|
||||
else
|
||||
port->first_buffer = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue