aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/media/UVideo.pas4
-rw-r--r--src/screens/UScreenSing.pas6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas
index b8bd14a0..b8698359 100644
--- a/src/media/UVideo.pas
+++ b/src/media/UVideo.pas
@@ -394,7 +394,9 @@ begin
// error resilience strategy (careful/compliant/agressive/very_aggressive)
//fCodecContext^.error_resilience := FF_ER_CAREFUL; //FF_ER_COMPLIANT;
// allow non spec compliant speedup tricks.
- //fCodecContext^.flags2 := fCodecContext^.flags2 or CODEC_FLAG2_FAST;
+
+ fCodecContext^.flags2 := CODEC_FLAG2_FAST;
+ fCodecContext^.flags := CODEC_FLAG_LOW_DELAY;
// Note: avcodec_open() and avcodec_close() are not thread-safe and will
// fail if called concurrently by different threads.
diff --git a/src/screens/UScreenSing.pas b/src/screens/UScreenSing.pas
index 201a2fb5..bf3db3af 100644
--- a/src/screens/UScreenSing.pas
+++ b/src/screens/UScreenSing.pas
@@ -212,22 +212,28 @@ begin
begin
if (fShowVisualization = false) and (fShowBackground = true) and (Ini.VideoEnabled = 1) and CurrentSong.Video.IsSet() then //only Background should be visible currently, switch to video
begin
+ Log.LogStatus('decided to switch to video', 'UScreenSing.ParseInput');
fShowBackground := false;
fCurrentVideo := fVideoClip;
+ Log.LogStatus('finished switching to video', 'UScreenSing.ParseInput');
end
else
begin
if fShowVisualization and CurrentSong.Background.IsSet() then
begin //switch to Background only
+ Log.LogStatus('decided to switch to background', 'UScreenSing.ParseInput');
fShowBackground := true;
fCurrentVideo := nil;
fShowVisualization := false;
+ Log.LogStatus('finished switching to background', 'UScreenSing.ParseInput');
end
else
begin //Video is currently visible, change to visualization
+ Log.LogStatus('decided to switch to visualization', 'UScreenSing.ParseInput');
fShowVisualization := true;
fCurrentVideo := Visualization.Open(PATH_NONE);
fCurrentVideo.play;
+ Log.LogStatus('finished switching to visualization', 'UScreenSing.ParseInput');
end;
end;
Exit;