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
+5 -3
+5 -3
View File
@@ -393,6 +393,7 @@ namespace Vocaluxe.Lib.Video
#region Threading
private void DoSkip()
{
string extension = Path.GetExtension(_FileName); //just a workaround for the mkv-search-bug in ffmpeg
lock (MutexSyncSignals)
{
_VideoSkipTime = _Gap;
@@ -400,8 +401,8 @@ namespace Vocaluxe.Lib.Video
_SkipTime = _Start + _Gap;
_BeforeLoop = false;
}
if (_SkipTime > 0)
if (_SkipTime > 0 && extension != ".mkv")
{
_VideoTime = _SkipTime;
try
@@ -419,7 +420,8 @@ namespace Vocaluxe.Lib.Video
_VideoTime = 0f;
try
{
CAcinerella.ac_seek(_videodecoder, -1, (Int64)0);
if (extension != ".mkv")
CAcinerella.ac_seek(_videodecoder, -1, (Int64)0);
}
catch (Exception e)
{