Skip to content
Permalink
Browse files

GUI: On Marking play button click play if not playing

  • Loading branch information
Kissaki committed Sep 28, 2019
1 parent 58fbf30 commit 2e93886e4efce1dfa03a8d5c019d62cc25b38895
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Videocutter/MainWindow.xaml.cs
@@ -272,7 +272,7 @@ private void ExportSlice(Marking slice)
Ffmpeg.ExportSlice(CurrentFile, slice, SettingContainerFormat, SettingVideoCodec, SettingAudioCodec);
}

private void CMarkingsList_Play(object sender, Controls.MarkingsList.MarkingEventArgs e) => SetSlice(e.Marking);
private void CMarkingsList_Play(object sender, Controls.MarkingsList.MarkingEventArgs e) { SetSlice(e.Marking); Play(); }
private void CMarkingsList_Export(object sender, Controls.MarkingsList.MarkingEventArgs e) => ExportSlice(e.Marking);
// If new value is after end time, assume we just passed the end time and the user wanted to set the end time as the start time as well (possibly in preparation to change the end time afterwards).
private void CMarkingsList_SetBegin(object sender, Controls.MarkingsList.MarkingEventArgs e) => e.Marking.StartMs = CurrentTimeMsPrecise > e.Marking.EndMs ? e.Marking.EndMs : CurrentTimeMsPrecise;

0 comments on commit 2e93886

Please sign in to comment.
You can’t perform that action at this time.