<div dir="ltr"><div>It seems surprising to me that you could have a successfully built pipeline without pads on your source. I would think that it wouldn't link.<br><br></div>As far as detecting when the source is available, how about a thread that sleeps for 1 sec (or so) then pings the server, terminating when a connection is made so the pipeline can be built. That is basically what you will need unless the server can announce that it is available somehow.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 31, 2014 at 3:19 PM, scottyMo220 <span dir="ltr"><<a href="mailto:smoses220@gmail.com" target="_blank">smoses220@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I have a pipeline that starts with an rtspsrc to connect to a video feed<br>
from a router. However, the service running the pipeline may be started<br>
before the device I'm getting video from is actually booted up. I've found<br>
that in this case, my pipeline would still appear to be working normally,<br>
except with no video (I'd see a black screen on my video frame, but all the<br>
element and pad states would appear normal). Furthermore, the rtspsrc would<br>
not get video even after the the target device was booted.<br>
<br>
Currently I am getting around this by checking if the rtspsrc itself has any<br>
pads. I've noticed that the rtspsrc will only have pads attached to it in<br>
cases where it was able to successfully get video from the provided url. I<br>
routinely capture the pipeline state, delete it and recreate, and finally<br>
start the new pipeline until the rtspsrc is created with the pads. However,<br>
this seems like a pretty roundabout way of handing this, and I was wondering<br>
if there might be a more straightforward method of checking if an rtspsrc is<br>
actually getting video? Also if there might be another easier way to have<br>
the source reconnect automatically as soon the router actually comes up on<br>
the network.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Any-method-for-checking-if-rtspsrc-is-actually-connected-tp4670074.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Any-method-for-checking-if-rtspsrc-is-actually-connected-tp4670074.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>