Reasons for Seek(..) not returning immediately?
Ralph
ralph.gucwa at racelogic.co.uk
Thu Jan 10 05:09:19 PST 2013
I'm writing a C# WPF Windows application using OSSBuild-vs2010 2012.06.15
with .NET4 C# bindings.
I have a pipeline containing two chains: one for audio and the other for
video. Each of those pipelines uses gnonlin for playing multiple XVID files.
I have a problem with the audio chain. After stripping out all bells and
whistles the pipeline looks like this:
gnlfilesource - gnlcomposition - autoaudiosink
Autoaudiosink uses waveformsink on most of machines.
The application works without major problems on hundreds of computers, but
there are a few, on which the problem manifests:
1. I run my software and load an XVID video file, the first frame is
displayed (if I enable the video)
2. I click the chart showing various graphs to move the cursor to another
position, this executes Seek(..) whith Flush, Skip and Accurate seek flags
(but it doesn't matter, the problem can be reproduced with just the Flush
flag set - this flag is required for seeking paused video).
3. The Seek(..) call does not return immediately. The application starts
responding and it usually takes a few minutes(!) for the Seek(..) call to
return.
4. I repeat steps 2-3 a few times
5. I close the application, run again and it may freeze one or two times,
but not for long. The third time I run the application, everything works
smoothly. Then I can run and close my application many times and it will be
working reliably without any delays. After restarting Windows, back to
square 1...
What's interesting, if I kill the application while it is performing a long
(a few minutes long) seek, it will keep freezing next time. The only way to
get it to work is to wait until it finally comes back to life (Seek(..) call
returns) a few times.
The problem can be reproduced on any virtual machine created using VMPlayer.
I have several virtual machine images with different operating systems
(Vista, 7, 8) and the problem manifests on all of them. I also have a
laptop on which the problem didn't exist a few months ago, but it started
freezing when I installed the application again a few days ago.
Any idea?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Reasons-for-Seek-not-returning-immediately-tp4657854.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list