From 356a35eda6450a885add91db702ad3a56f046716 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 21 Sep 2017 16:58:38 -0300 Subject: [PATCH] samples: Minor fix in the way we free resources --- samples/BasicTutorial8.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/BasicTutorial8.cs b/samples/BasicTutorial8.cs index 02acfbddb7..e3ddf9d88b 100644 --- a/samples/BasicTutorial8.cs +++ b/samples/BasicTutorial8.cs @@ -220,7 +220,9 @@ namespace GstreamerSharp Tee.ReleaseRequestPad(teeAppPad); // Free resources - pipeline.SetState (State.Playing); + pipeline.SetState (State.Null); + + Gst.Global.Deinit(); } } -} \ No newline at end of file +}