[gstreamer-bugs] RTP bus

Gank gankyy at gmail.com
Fri Jan 15 06:13:56 PST 2010


Hi,

I'm trying to detect an Bus state change or EOS in a rtp stream.
Is it a bug or i'm doing this wrong?

I'm trying this code but can't get any bus change...



pipeAudioSend = Pipeline.launch(pipeline.toString());
Bus busAudioSend = pipeAudioSend.getBus();
busAudioSend.connect(new Bus.ERROR() {

public void errorMessage(GstObject source, int code,
String message) {
System.out.println("Error: code=" + code + " message="
+ message);
System.out.println("Error: Source=" + source.toString
());
}
});
busAudioSend.connect(new Bus.EOS() {

public void endOfStream(GstObject source) {
System.out.println("Got EOS!");
Gst.quit();
}
});
busAudioSend.connect(new Bus.STATE_CHANGED() {

public void stateChanged(GstObject source, State old,
State current, State pending) {
if (source == pipeAudioSend) {
System.out.println("Pipeline SEND state changed
from " + old + " to " + current);
}
}
});

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-bugs/attachments/20100115/f64e310f/attachment.htm>


More information about the Gstreamer-bugs mailing list