[MPlayer-dev-eng] Suggested diffs to enablemplayertostreamaudiotoother apps

Triode triode1 at btinternet.com
Mon Dec 6 00:29:56 CET 2004


>> Sorry, I missunderstood.  If I produced a patch with mp_msg.c sending *all*
>> messages to stderr, would this match your suggestion?
>> Adrian
>
> yes, but it was a somewhat controversial topic a while back...so i'm
> not sure how it would fly with the others.. :)
>
> rich

Based on feedback, I've split my proposed patch into two components - one common which I hope is not controversial and two options 
(option1 and option2) for the more controversial bit:

common:
- change to ao_pcm.c to enable streaming to stdout (and check for write failing on output file to allow mplayer to detect pipe 
closing)
- addition of verbose check before calling aviprint.c to bring two modules into line with others - hopefully this is in line with 
Diego's view of how aviprint.c should work

Two options to avoid status messages going to stdout and corrupting streamed output
option1:
- addition of new command line option "-silent" which is checked at the start of main() to set mp_msg_level before any calls to 
mp_msg() are made.

option2:
- change to mp_msg.c to make all STATUS and below messages to go to stderr rather than stdout - in line with Rich's comment above. 
(Though could be set to send all mp_msg's to stderr)

I'd like to propose the common patch and one of the two options for inclusion in the MPlayer source - please let me know what you 
think.

Adrian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: option2.patch
Type: application/octet-stream
Size: 643 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041205/35ae48c8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: option1.patch
Type: application/octet-stream
Size: 1271 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041205/35ae48c8/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: common.patch
Type: application/octet-stream
Size: 2054 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041205/35ae48c8/attachment-0002.obj>


More information about the MPlayer-dev-eng mailing list