Hi there,<br><br>I try to write a little program in C that handles rtsp streams with gst and I have some troubles.<br><br>I create a pipeline like this one : rtspsrc ! decodebin ! fakesink<br>In documentation rtspsrc have &quot;sometimes&quot; pad and should provide data only when in PLAYING state, so I added an callback to &quot;pad-added&quot; signal and set state of my pipeline to PLAYING. My &quot;pad-added&quot; signal is called, and in this callback I link rtspsrc pad with sink pad of decodebin element. <br>
Decodebin have signals for &quot;new-decoded-pad&quot; so I provide a callback for this signal too. Callback is called and I detect caps. But here troubles comes. Caps are not always the same. Sometimes I receive fixed caps with only one height, width, framerate and fourcc values , and sometimes i received ranges for these values. I woul like to know how to do to always receive right and fixed values in decodebin caps ?<br>
<br>&quot;new-decoded-pad&quot; callback have &quot;last&quot; boolean, in his prototype, sould this value is 1 when they are no more pad for decodebin element ? In my test this boolean vallue is always FALSE. My stream have audio and video.<br>
<br>attached my source code.<br><br>If you have ideas ... :)<br><br>Best regards,<br>Nicolas<br><br><br><br><br><br>