summaryrefslogtreecommitdiff
path: root/gr-video-sdl/lib/sink_s_impl.cc
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2021-08-08 13:28:48 -0700
committermormj <34754695+mormj@users.noreply.github.com>2021-08-23 06:17:01 -0400
commit314a87008559a04b911d9ed8fc77cb0c35d6f383 (patch)
tree1e5684961a8a2a0afa45691c217249acf9ffe422 /gr-video-sdl/lib/sink_s_impl.cc
parent1f1733eb4489b48fb73509e7806df19e1c738092 (diff)
gr-video-sdl: Fix reversal of U and V channels on sink blocks.
Signed-off-by: Ron Economos <w6rz@comcast.net>
Diffstat (limited to 'gr-video-sdl/lib/sink_s_impl.cc')
-rw-r--r--gr-video-sdl/lib/sink_s_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-video-sdl/lib/sink_s_impl.cc b/gr-video-sdl/lib/sink_s_impl.cc
index e54a5bd6fd..56d51ffbca 100644
--- a/gr-video-sdl/lib/sink_s_impl.cc
+++ b/gr-video-sdl/lib/sink_s_impl.cc
@@ -103,7 +103,7 @@ sink_s_impl::sink_s_impl(double framerate,
/* Initialize and create the YUV Overlay used for video out */
if (!(d_image =
- SDL_CreateYUVOverlay(d_width, d_height, SDL_YV12_OVERLAY, d_screen))) {
+ SDL_CreateYUVOverlay(d_width, d_height, SDL_IYUV_OVERLAY, d_screen))) {
std::ostringstream msg;
msg << "Couldn't create a YUV overlay: " << SDL_GetError();
GR_LOG_ERROR(d_logger, msg.str());