From 0ade815affb7f297e2e85b105e6ddd35be3f5fdb Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Wed, 5 Nov 2008 17:38:31 +0000 Subject: VideoTexture: fixing a crash when loading an image as a video file - yes it works, provided that you don't set repeat and also no need to refresh all the time. --- source/gameengine/VideoTexture/VideoFFmpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/VideoTexture/VideoFFmpeg.cpp b/source/gameengine/VideoTexture/VideoFFmpeg.cpp index 91b8a54dd86..277ac192686 100644 --- a/source/gameengine/VideoTexture/VideoFFmpeg.cpp +++ b/source/gameengine/VideoTexture/VideoFFmpeg.cpp @@ -255,7 +255,7 @@ void VideoFFmpeg::openFile (char * filename) if ( #ifdef FFMPEG_PB_IS_POINTER - m_formatCtx->pb->is_streamed + m_formatCtx->pb && m_formatCtx->pb->is_streamed #else m_formatCtx->pb.is_streamed #endif -- cgit v1.2.3