Converting a gst-launch pipeline to C code
William Salibrici
bsalibrici at latticeinc.com
Tue Jul 26 18:50:00 UTC 2016
Hello,
I am converting the following simple pipeline to C code but it is not working. This receiver pipeline works just fine using the launch tool which shows that my test environment is set up correctly.
udpsrc address="192.168.1.101" port=5018 ! fakesink dump=TRUE
Attached is my C code snippet. My bus_call message handler [not included] prints out the pipeline state changes. I used visual studio 2010 to compile the C code. Here is the run time screen capture.
GST_STATE_CHANGE_ASYNC for udp recv.
Running...
Pipeline state changed from NULL to READY.
Pipeline state changed from READY to PAUSED.
So, the return from setting the pipeline to playing is the 'async' state change. As I understand it, this means that pipeline state changes may be delayed. However, for my simple test case the pipeline never goes to the PLAYING state. The pipeline just sits there in the PAUSED state and data never flows to the display. For my test case I start the receiver first, then the sender which runs on a separate machine.
I'm using GStreamer 1.8.1 with your windows pre-built binaries on my windows 7 machines.
I'm probably tripping over something simple. Any ideas on what I might be doing wrong?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160726/67cf77c0/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: code-snippet.c
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160726/67cf77c0/attachment-0001.c>
More information about the gstreamer-devel
mailing list