I have an application in which I read mpeg2 transport stream from a file and send it out on UDP.<br>I&#39;m trying to make it loop the file, so start over from the beginning of the file when the end is reached.<br>So far I have not been successful in doing this, any suggestions?<br>
<br>Pipeline currently looks like this: filesrc ! mpegtsdemux ! mpegtsmux ! bufresize ! udpsink<br><br>I&#39;ve tried sending seek events to every element in the pipeline and they all either ignore the seek or break.<br>        if (!gst_element_seek (tp-&gt;sink, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,<br>
                         GST_SEEK_TYPE_SET, 0,<br>                         GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) {<br>          l_debug(&quot;Seek failed!\n&quot;);<br>If I do this from the signal handler on an &quot;end of stream&quot; event, it will be too late as some of the elements will have received the EOS and shut down, but even if I send the seeks well before the end is reached I&#39;ve not managed to make it do what I want.<br>
<br>There has to be a way to do this that is cleaner than shutting down, deleting everything and creating a new pipeline!<br><br>Baldur<br>