diff options
Diffstat (limited to 'src/cam/sdl_texture_mjpg.cpp')
-rw-r--r-- | src/cam/sdl_texture_mjpg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/sdl_texture_mjpg.cpp b/src/cam/sdl_texture_mjpg.cpp index 7542efd7..8dd5ee3e 100644 --- a/src/cam/sdl_texture_mjpg.cpp +++ b/src/cam/sdl_texture_mjpg.cpp @@ -76,8 +76,8 @@ int SDLTextureMJPG::decompress(Span<const uint8_t> data) return 0; } -void SDLTextureMJPG::update(Span<const uint8_t> data) +void SDLTextureMJPG::update(const std::vector<libcamera::Span<const uint8_t>> &data) { - decompress(data); + decompress(data[0]); SDL_UpdateTexture(ptr_, nullptr, rgb_.get(), pitch_); } |