I am doing some development on an input plug-in and have discovered some odd behavior when playing an AVI file with a --start-time offset. My plugin is logging requests to seek within the file, so this is how I noticed the issue.
If I play an AVI file from the beginning, (that is, without the --start-time option), I see the expected seek to the end of the file to read indexing information, then a seek back to the beginning, and then no more seeks unless I am rewinding or jumping ahead in the file.
If I add a --start-time offset to the command line, I see a continuous stream of seek requests, alternating between seeking backwards and forwards. For example, I'll see a seek to position 10000000, followed by a seek to 10100000, then a seek to 10010000, then 1011000. (These are not the actual offsets, but show the pattern I'm seeing). It's almost as if two different parts of the player are trying to get data from the AVI at different places.
Any idea where to start looking to find out why this is happening?
Chris Rath