mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
Fix compilation of unit test
This commit is contained in:
parent
7c771c538d
commit
02ea7a16ab
1 changed files with 0 additions and 2 deletions
|
@ -251,14 +251,12 @@ public class PadTest
|
|||
Assert.AreEqual(caps.Refcount, 2, "caps");
|
||||
|
||||
Gst.Buffer buffer = new Gst.Buffer();
|
||||
buffer.Ref();
|
||||
Assert.AreEqual(src.Push(buffer), FlowReturn.NotLinked);
|
||||
Assert.AreEqual(buffer.Refcount, 1, "buffer");
|
||||
buffer.Dispose();
|
||||
|
||||
ulong handler_id = src.AddBufferProbe(new Pad.BufferProbeDelegate(ProbeHandler));
|
||||
buffer = new Gst.Buffer();
|
||||
buffer.Ref();
|
||||
Assert.AreEqual(src.Push(buffer), FlowReturn.Ok);
|
||||
buffer.Dispose();
|
||||
src.RemoveBufferProbe((uint)handler_id);
|
||||
|
|
Loading…
Reference in a new issue