[longomatch] Prevent cancelling the edition using an already deallocated Handle
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Prevent cancelling the edition using an already deallocated Handle
- Date: Sat, 6 Mar 2010 16:06:45 +0000 (UTC)
commit b33e824455299ae0b08e6d1ad0b6c81e85d3986f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Mar 6 16:56:42 2010 +0100
Prevent cancelling the edition using an already deallocated Handle
CesarPlayer/Editor/GstVideoSplitter.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/CesarPlayer/Editor/GstVideoSplitter.cs b/CesarPlayer/Editor/GstVideoSplitter.cs
index ccac905..1300941 100644
--- a/CesarPlayer/Editor/GstVideoSplitter.cs
+++ b/CesarPlayer/Editor/GstVideoSplitter.cs
@@ -303,7 +303,11 @@ namespace LongoMatch.Video.Editor {
static extern void gst_video_editor_cancel(IntPtr raw);
public void Cancel() {
- gst_video_editor_cancel(Handle);
+ // The handle might have already been dealocated
+ try{
+ gst_video_editor_cancel(Handle);
+ }catch{
+ }
}
[DllImport("libcesarplayer.dll")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]