summaryrefslogtreecommitdiffstats
path: root/ext/sdl/sdlvideosink.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sdl/sdlvideosink.c')
-rw-r--r--ext/sdl/sdlvideosink.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index b7098b69..f10537b2 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -199,11 +199,14 @@ gst_sdlvideosink_get_sdl_from_fourcc (GstSDLVideoSink *sdlvideosink,
return SDL_UYVY_OVERLAY;
case GST_MAKE_FOURCC('Y','V','Y','U'):
return SDL_YVYU_OVERLAY;
- default:
+ default: {
+ gulong print_format;
+ print_format = GULONG_FROM_LE(code);
gst_element_error(GST_ELEMENT(sdlvideosink),
"Unsupported format %08lx (%4.4s)",
- GULONG_FROM_LE(code), (char*)(&(GULONG_FROM_LE(code))));
+ print_format, (char*)&print_format);
return 0;
+ }
}
}