signalMessage.set(msg);
pipe.quit();
}
});
GstElementAPI.GSTELEMENT_API.gst_element_post_message(pipe.src,
new StateChangedMessage(pipe.src, State.READY, State.PLAYING, State.VOID_PENDING));
pipe.run();
Message msg = signalMessage.get();
assertNotNull("No message available on bus", msg);
assertEquals("Wrong message type", MessageType.STATE_CHANGED, msg.getType());
StateChangedMessage smsg = (StateChangedMessage) msg;
assertEquals("Wrong old state", State.READY, smsg.getOldState());
assertEquals("Wrong new state", State.PLAYING, smsg.getNewState());
assertEquals("Wrong pending state", State.VOID_PENDING, smsg.getPendingState());
pipe.dispose();
}