added a workaround for the mkv search bug. must be removed as soon as ffmpeg is fixed. should not be used with loop in mkv files

This commit is contained in:
Alexander Eckart committed 2012-03-08 21:12:32 +01:00
1 parent f5c7bcda03
commit a63ff63390
1 file changed
+4 -2
+4 -2
View File
@@ -393,6 +393,7 @@ namespace Vocaluxe.Lib.Video
#region Threading #region Threading
private void DoSkip() private void DoSkip()
{ {
string extension = Path.GetExtension(_FileName); //just a workaround for the mkv-search-bug in ffmpeg
lock (MutexSyncSignals) lock (MutexSyncSignals)
{ {
_VideoSkipTime = _Gap; _VideoSkipTime = _Gap;
@@ -401,7 +402,7 @@ namespace Vocaluxe.Lib.Video
_BeforeLoop = false; _BeforeLoop = false;
} }
if (_SkipTime > 0) if (_SkipTime > 0 && extension != ".mkv")
{ {
_VideoTime = _SkipTime; _VideoTime = _SkipTime;
try try
@@ -419,7 +420,8 @@ namespace Vocaluxe.Lib.Video
_VideoTime = 0f; _VideoTime = 0f;
try try
{ {
CAcinerella.ac_seek(_videodecoder, -1, (Int64)0); if (extension != ".mkv")
CAcinerella.ac_seek(_videodecoder, -1, (Int64)0);
} }
catch (Exception e) catch (Exception e)
{ {