summaryrefslogtreecommitdiff
path: root/samples/BasicTutorial2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/BasicTutorial2.cs')
-rw-r--r--samples/BasicTutorial2.cs5
1 files changed, 0 insertions, 5 deletions
diff --git a/samples/BasicTutorial2.cs b/samples/BasicTutorial2.cs
index 4f68182..b6b29c3 100644
--- a/samples/BasicTutorial2.cs
+++ b/samples/BasicTutorial2.cs
@@ -28,7 +28,6 @@ namespace GstreamerSharp
// Build the pipeline
pipeline.Add (source, sink);
if (!source.Link (sink)) {
- pipeline.Dispose ();
Console.WriteLine ("Elements could not be linked");
return;
}
@@ -40,7 +39,6 @@ namespace GstreamerSharp
var ret = pipeline.SetState(State.Playing);
if (ret == StateChangeReturn.Failure) {
Console.WriteLine ("Unable to set the pipeline to the playing state");
- pipeline.Dispose ();
return;
}
@@ -66,12 +64,9 @@ namespace GstreamerSharp
Console.WriteLine ("Unexpected messag received");
break;
}
- msg.Dispose ();
}
- bus.Dispose ();
pipeline.SetState (State.Null);
- pipeline.Dispose ();
}
}
} \ No newline at end of file