summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-video-sdl/lib/sink_s_impl.cc2
-rw-r--r--gr-video-sdl/lib/sink_uc_impl.cc2
2 files changed, 2 insertions, 2 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());
diff --git a/gr-video-sdl/lib/sink_uc_impl.cc b/gr-video-sdl/lib/sink_uc_impl.cc
index 7db820f42f..b34e51fbba 100644
--- a/gr-video-sdl/lib/sink_uc_impl.cc
+++ b/gr-video-sdl/lib/sink_uc_impl.cc
@@ -105,7 +105,7 @@ sink_uc_impl::sink_uc_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 << "SDL: Couldn't create a YUV overlay: " << SDL_GetError();
GR_LOG_ERROR(d_logger, msg.str());