pipe.quit();
}
});
final int POSITION = 0xdeadbeef;
GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.src,
new SegmentDoneMessage(pipe.src, Format.TIME, POSITION));
pipe.run();
Message msg = signalMessage.get();
assertNotNull("No message available on bus", msg);
assertEquals("Wrong message type", MessageType.SEGMENT_DONE, msg.getType());
SegmentDoneMessage smsg = (SegmentDoneMessage) msg;
assertEquals("Wrong format", Format.TIME, smsg.getFormat());
assertEquals("Wrong position", POSITION, smsg.getPosition());
pipe.dispose();
}