signalMessage.set(msg);
pipe.quit();
}
});
GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.src,
new LatencyMessage(pipe.src));
pipe.run();
Message msg = signalMessage.get();
assertNotNull("No message available on bus", msg);
assertEquals("Wrong message type", MessageType.LATENCY, msg.getType());
@SuppressWarnings("unused")
LatencyMessage smsg = (LatencyMessage) msg;
pipe.dispose();
}