[longomatch] Pause playback before leaving Period sync widget.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Pause playback before leaving Period sync widget.
- Date: Wed, 18 Mar 2015 14:41:47 +0000 (UTC)
commit b89f22341c2f5118cf2f90a2b5a87e796fb7fa8c
Author: Julien Moutte <julien fluendo com>
Date: Fri Mar 13 19:12:37 2015 +0100
Pause playback before leaving Period sync widget.
Indeed leaving the widget while playing could produce a race and a crash in widget destruction.
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 6ab9499..4559e82 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -511,6 +511,8 @@ namespace LongoMatch.Gui.Panel
return;
}
} else if (notebook1.Page == PROJECT_PERIODS) {
+ // Pause playback and then save periods changes into the project. Fileset has
already been updated.
+ projectperiods1.Pause ();
projectperiods1.SaveChanges ();
StartProject ();
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]