<div dir="ltr"><div>>> Also i would have build the pipeline for an single camera input and tried<br>
making it DYNAMIC first , rather than going ahead with 5 camera logic<br>
straight-forward.<br><br></div>Yes, I already did it. My C code (see the link which I have given in my 1st post) works fine for single camera. No error or No warning message at all. If you look into my C code then you will see that I am also setting my element state to NULL before unblinking. But I am still getting this error. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 22, 2015 at 10:24 PM, Ashish Kumar Mishra <span dir="ltr"><<a href="mailto:ashish.kmishra@dexceldesigns.com" target="_blank">ashish.kmishra@dexceldesigns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Janardana ,<br>
<br>
[ I am also working on same , hence i could be wrong .....<br>
  Reason i am sharing this info is that by the time senior group members<br>
revert to your reply , at least<br>
  you could evaluate few more test case's  ]<br>
<br>
Even i am trying to have an pipeline ( with different plugins than yours )<br>
which could be configured dynamically. Based on my trial and fail method ,<br>
below info could help you:-<br>
<br>
1) "...(lt-camera_switch_server:22356): GStreamer-WARNING **:<br>
Trying to join task 0x7f873c01def0 from its thread would deadlock.You cannot<br>
change the state of an element from its streaming thread. Use g_idle_add()<br>
or post a GstMessage on the bus to schedule the state change from the main<br>
thread...."<br>
<br>
This is an warning message which you could neglect ...Somewhere in the forum<br>
i have read , will try to find the discussion & if possible attach the link.<br>
<br>
<br>
2) Many a place i have read that element's configuration had to be in :-<br>
    Change the element's state to READY  -> Change the parameters /<br>
Create-Link new instance of element's -> Change the element state to<br>
PLAYING.<br>
<br>
But with this flow logic , i could observe few scenario's where the error<br>
message's are like<br>
".....Trying to dispose element XXX , but it is in PAUSED (locked) instead<br>
of the NULL state.<br>
You need to explicitly set elements to the NULL state before droping the<br>
final reference, to allow them to clean up..."<br>
<br>
For which i am now making the element state to NULL [ Initial was Ready]<br>
Hence , please verify the state of element before taking any corrective<br>
action ( gst_element_set_state() )<br>
<br>
Also i would have build the pipeline for an single camera input and tried<br>
making it DYNAMIC first , rather than going ahead with 5 camera logic<br>
straight-forward.<br>
<br>
<br>
3) There is an error for THREAD joining in log.<br>
<br>
Since even i am trying to have an dynamic pipeline , i would be monitoring<br>
your thread to correct my mistake.<br>
<br>
Thanks ,<br>
Ashish Kumar Mishra.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-do-i-switch-between-multiple-rtsp-video-streams-without-stopping-pipeline-gapless-streaming-tp4674601p4674602.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-do-i-switch-between-multiple-rtsp-video-streams-without-stopping-pipeline-gapless-streaming-tp4674601p4674602.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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>