[MPlayer-dev-eng] Patch for a pause property

Joshua Isom jrisom at gmail.com
Wed Jun 11 09:44:22 CEST 2008


>> I'm working on a stateless frontend for mplayer.  And to give a good 
>> feel for the app(a play/pause button that shows play or pause, not 
>> both, and not two buttons), I wanted to know if mplayer was paused or 
>> not since it could be controlled outside of my infrastructure.  
>> Setting if it's paused or not doesn't work, it just pauses it.  It 
>> only patches command.c and not slave.txt.  I've never dealt with 
>> mplayer's internals so this was mainly just to get what I needed than 
>> anything else.  Hopefully someone knows how to clean it up and get it 
>> working right.
>>
>> <patch-command.c>
>
> some quick comments:
> - don't mix spaces and tabs for indentation
> - add documentation to DOCS/tech/slave.txt
>
> Diego

The spaces and tabs are like that in command.c so I was just matching 
it.  The patch doesn't work property with regards to setting, so I 
wanted to get the code working first.  But I seem to have gotten it 
working(set_property pause 1 requires a "pausing_keep" prefix, as does 
get_property pause).  It looks like slave.txt doesn't document 
properties in a fuller manner, but only commands.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pause_prop.patch
Type: application/octet-stream
Size: 1911 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080611/9a845a23/attachment.obj>
-------------- next part --------------




More information about the MPlayer-dev-eng mailing list