[longomatch] Run backend callbacks from the main thread
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Run backend callbacks from the main thread
- Date: Fri, 30 Jan 2015 12:20:05 +0000 (UTC)
commit 2ec24904a1202522d3bd4870445d2bdef4007ddd
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Jan 30 11:28:25 2015 +0100
Run backend callbacks from the main thread
LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
index e93d7cd..b8d0e9d 100644
--- a/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/CapturerBin.cs
@@ -476,10 +476,12 @@ namespace LongoMatch.Gui
void HandleMediaInfo (int width, int height, int parN, int parD)
{
- videowindow.Ratio = (float) width / height * parN / parD;
- outputFile.VideoWidth = (uint) width;
- outputFile.VideoHeight = (uint) height;
- outputFile.Par = (float) parN / parD;
+ Application.Invoke (delegate {
+ videowindow.Ratio = (float) width / height * parN / parD;
+ outputFile.VideoWidth = (uint) width;
+ outputFile.VideoHeight = (uint) height;
+ outputFile.Par = (float) parN / parD;
+ });
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]