Fix crash on frame dupe.

This commit is contained in:
Themaister 2012-10-21 11:17:21 +01:00
parent a734e18295
commit a545964be8

View File

@ -253,7 +253,7 @@ static void video_frame(const void *data, unsigned width, unsigned height, size_
return;
#endif
if (g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_0RGB1555)
if (g_extern.system.pix_fmt == RETRO_PIXEL_FORMAT_0RGB1555 && data)
{
RARCH_PERFORMANCE_INIT(video_frame_conv);
RARCH_PERFORMANCE_START(video_frame_conv);