[MPlayer-dev-eng] [PATCH] Patch for better pause support.

Robert Cummings robert at interjinn.com
Thu Sep 4 17:51:29 CEST 2008


On Thu, 2008-09-04 at 09:57 +0200, Reimar Döffinger wrote:
> On Wed, Sep 03, 2008 at 11:19:10PM -0400, Robert Cummings wrote:
> > Specifically it doesn't set the pause status before entry
> > into run_command().
> 
> What is the purpose of setting that (except your is_paused command)?
> The reason I dislike it is because the variable is called "was_paused",
> which implies it actually is no longer paused when it is set.
> It may work well like that for now, but it seems like the kind of thing
> that is guaranteed to be misunderstood and broken someonewhen in the
> future.
> And thanks for testing.

The was_paused variable as you said is necessary for the is_paused
command, but additionally the run_command() function uses it at the end
when handling cmd->pausing status. Specifically pausing_toggle and
pausing_keep. Perhaps it could be changed to is_paused to better reflect
it's purpose (is that considered cosmetic?). Either way, I think being
able to probe the current pause status of mplayer is a valuable asset
for wrapper scripts.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP




More information about the MPlayer-dev-eng mailing list