diff Media/MediaPlayer.cpp @ 2524:c7264ab7132f

Main menu rendered using d3d11
author a.parshin
date Fri, 10 Oct 2014 17:42:05 +0300
parents b36b858a5175
children abc6a9d079b9
line wrap: on
line diff
--- a/Media/MediaPlayer.cpp	Thu Oct 09 23:33:36 2014 +0300
+++ b/Media/MediaPlayer.cpp	Fri Oct 10 17:42:05 2014 +0300
@@ -274,7 +274,10 @@
 static bool av_open_video_stream(AVFormatContext *format_ctx, AVVideoStream *out_stream)
 {
   if (!av_open_stream(format_ctx, AVMEDIA_TYPE_VIDEO, out_stream))
-    return Error("Video stream not found"), false;
+  {
+    Error("Video stream not found");
+    false;
+  }
 
   out_stream->frames_per_second = (double)out_stream->dec_ctx->time_base.den / (double)out_stream->dec_ctx->time_base.num;
   return true;