Hello,
I am trying to play a video file repeatedly using Gstreamer, when the file reaches End Of Stream. My video file just gets played only for a single time. I want it to repeat again.
I try closing the file and reopening it again when END OF FILE condition is satisfied. I have attached that portion of code with this post. But, this method doesn't help me out.
The Pipeline is in PLAYING STATE and my terminal window is stable with the Dynamic Pads created. But the video playing window gets struck with the last frame of the video file. Repetition doesn't happen!
int repeat= 0;
if (feof(l_pVideoFD))
{
if(fclose(l_pVideoFD) == 0)
{
repeat++;
printf(" REPEATING %d\n",repeat);
l_pVideoFD = fopen("sample.mpg","r");
}
}
Kindly support me with regards to this issue.
Thanks in Advance!
Shylesh S.