-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-cache
causes playbacks fail to start
#24
Comments
Maybe I could have made a fix, sooner than I firstly imagined... The patch is roughly in two parts:
The idea is to make Patch for
Patch for
Now the problem lies: I'm not sure how to describe the fix into the C source! The code proudly has no locks, no barriers, no atomics, nothing whatever. Where to begin? In modern sense, it smells wrong by definition; and in reality, it is not correct enough. |
Correction: chunk (2)'s last Note that console outputs are way too slow and tend to hide the issue, especially with increased |
--cache
causes playbacks fail to start-cache
causes playbacks fail to start
Sometimes this happens:
After that, mplayer ends gracefully, without playing anything.
(the used build is somewhat old, due to every newer builds having each own set of bugs hitting my usage, e.g. non-working-at-all or broken MPEG2 or broken Vorbis or something. I can't have it updated still.)
I'm suspecting a race in
stream/cache2.c
betweencache_stream_seek_long()
resets [cache_data]->eof=0; // !!!!!!!
cache_fill()
, running at eof, overwrites [cache_data]->eof
every now and thenwhich would let
cache_read()
abort the loop immediately and fail hard.Due to the nature of the problem, it hardly reproduces on reasonably fast filesystems. I usually get hit by this problem when playing a file on network drives over mildly-choked WiFi.
@rdoeffinger any ideas?
The text was updated successfully, but these errors were encountered: