<div dir="ltr">Hi all,<div><br></div><div>I have attached a sample code.</div><div>This is derived from the basic example at :</div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html</a></div>
<div>with the following changes :</div><div><br></div><div>1. audio elements were replaced with video</div><div>2. filesrc was replaced with appsrc & the code related to it </div><div><br></div><div>I compiled this using :</div>
<div><br></div><div> gcc -Wall -g  ./gst_dynamic_padding_expt.c -g $(pkg-config --cflags --libs gstreamer-1.0) -lgstapp-1.0 -o dynamic_pipeline</div><div><br></div><div>If I run this with a sample input flv file, I get "Internal data flow error" due to following reason :</div>
<div><br></div><div><ol type="1" style="margin-left:0.375in;direction:ltr;margin-top:0in;margin-bottom:0in;font-family:Calibri;font-size:11pt">
 <li value="1" style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">After adding video pad of the demuxer dynamically, appsrc renegotiation is getting called </span></li>
 <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">The caps video/x-flv are
     received by flvdemux sink & then forwarded to src pad</span></li>
 <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">Src pad says that negotiation
     failed, and stores the event as pending since it is a sticky event</span></li>
 <li style="margin-top:0px;margin-bottom:0px;vertical-align:middle"><span style="font-size:11pt">In future, whenever we try to
     push any data through the src pad, it checks all the pending sticky
     events & says that negotiation failed</span></li>
</ol><div><font face="Calibri"><span style="font-size:15px"><br></span></font></div><div style><font face="Calibri"><span style="font-size:15px">What am I missing here? Is it a bug?</span></font></div><div style><font face="Calibri"><span style="font-size:15px"><br>
</span></font></div><div style><br></div><div style><font face="Calibri"><span style="font-size:15px">Thanks in anticipation</span></font></div><div><br></div>-- <br>-Bilva <br><br>"Life is a constant; it is our reaction to it that is the variable." -- Will Spencer
</div></div>