mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +00:00
Fix test compilation
This commit is contained in:
parent
39f1f2b7ad
commit
265cb43fa7
2 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using GLib;
|
|
||||||
using Gst;
|
using Gst;
|
||||||
|
using Gst.GLib;
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class ElementTest
|
public class ElementTest
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class PipelineTest
|
||||||
}
|
}
|
||||||
|
|
||||||
Element pipeline;
|
Element pipeline;
|
||||||
GLib.MainLoop loop;
|
Gst.GLib.MainLoop loop;
|
||||||
|
|
||||||
bool MessageReceived(Bus bus, Message message) {
|
bool MessageReceived(Bus bus, Message message) {
|
||||||
MessageType type = message.Type;
|
MessageType type = message.Type;
|
||||||
|
@ -142,7 +142,7 @@ public class PipelineTest
|
||||||
}
|
}
|
||||||
Assert.AreEqual(pipeline.SetState(State.Playing), StateChangeReturn.Async);
|
Assert.AreEqual(pipeline.SetState(State.Playing), StateChangeReturn.Async);
|
||||||
|
|
||||||
loop = new GLib.MainLoop();
|
loop = new Gst.GLib.MainLoop();
|
||||||
loop.Run();
|
loop.Run();
|
||||||
|
|
||||||
Assert.AreEqual(pipeline.SetState(State.Null), StateChangeReturn.Success);
|
Assert.AreEqual(pipeline.SetState(State.Null), StateChangeReturn.Success);
|
||||||
|
|
Loading…
Reference in a new issue