[MPlayer-dev-eng] [PATCH] Return actual current stream id in slave mode

Adrian Stutz adrian at sttz.ch
Tue Dec 15 23:05:45 CET 2009


Hello,

Currently, get_property switch_audio / switch_video return -1 if no stream
has been explicitly selected by either using -aid/-vid or switching streams
while playing.

I don't think that's very useful and on the other hand it's very practical
to know which stream mplayer selected exactly if none has been specified.
This patch changes the return value of the switch_audio and switch_video
properties to return the current stream id instead of -1.

(This has already been the case for the sub_* properties, btw).

Greetings
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: property_get_actual_stream_id.diff
Type: application/octet-stream
Size: 838 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20091215/273db330/attachment.obj>


More information about the MPlayer-dev-eng mailing list