diff options
Diffstat (limited to 'src/cam/sdl_texture_yuv.cpp')
-rw-r--r-- | src/cam/sdl_texture_yuv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cam/sdl_texture_yuv.cpp b/src/cam/sdl_texture_yuv.cpp index aa424559..b29c3b93 100644 --- a/src/cam/sdl_texture_yuv.cpp +++ b/src/cam/sdl_texture_yuv.cpp @@ -17,8 +17,8 @@ SDLTextureNV12::SDLTextureNV12(const SDL_Rect &rect, unsigned int stride) void SDLTextureNV12::update(const std::vector<libcamera::Span<const uint8_t>> &data) { - SDL_UpdateNVTexture(ptr_, &rect_, data[0].data(), pitch_, - data[1].data(), pitch_); + SDL_UpdateNVTexture(ptr_, &rect_, data[0].data(), stride_, + data[1].data(), stride_); } #endif @@ -29,5 +29,5 @@ SDLTextureYUYV::SDLTextureYUYV(const SDL_Rect &rect, unsigned int stride) void SDLTextureYUYV::update(const std::vector<libcamera::Span<const uint8_t>> &data) { - SDL_UpdateTexture(ptr_, &rect_, data[0].data(), pitch_); + SDL_UpdateTexture(ptr_, &rect_, data[0].data(), stride_); } |