I have an application in which I read mpeg2 transport stream from a file and send it out on UDP.<br>I'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'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->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("Seek failed!\n");<br>If I do this from the signal handler on an "end of stream" 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'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>