samples: Minor fix in the way we free resources
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 21 Sep 2017 19:58:38 +0000 (16:58 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 22 Sep 2017 18:42:41 +0000 (15:42 -0300)
samples/BasicTutorial8.cs

index 02acfbd..e3ddf9d 100644 (file)
@@ -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
+}