Commit a67dd7de authored by Alex Root's avatar Alex Root Committed by Martin Finkel

Fixed a incorrect change of slider values in subtitle delay section.

(cherry picked from commit 28e4716e24971fdd2f7ac82693dbc4aef38d6bfa)
parent e6511939
Pipeline #4978 passed with stage
in 36 minutes and 26 seconds
......@@ -382,13 +382,15 @@ namespace VLC.Services.RunTime
public long AudioDelay
{
get { return _mediaPlayer.audioDelay(); }
set { _mediaPlayer.setAudioDelay(value); }
// LibVLC works with microseconds, so we should multiply the values by 1000.
get { return _mediaPlayer.audioDelay() / 1000; }
set { _mediaPlayer.setAudioDelay(value * 1000); }
}
public long SpuDelay
{
get { return _mediaPlayer.spuDelay(); }
// LibVLC works with microseconds, so we should multiply the values by 1000.
get { return _mediaPlayer.spuDelay() / 1000; }
set { _mediaPlayer.setSpuDelay(value * 1000); }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment