Mercurial > mplayer.hg
diff stream/stream.h @ 34648:26eddbd6353a
Code cleanup: Use a stream_control instead of global functions to
get the language associate with a audio or subtitle stream from
the streaming layer.
author | reimar |
---|---|
date | Sun, 19 Feb 2012 13:15:41 +0000 |
parents | 1495455e6d22 |
children | cc658103f214 |
line wrap: on
line diff
--- a/stream/stream.h Sat Feb 18 19:33:47 2012 +0000 +++ b/stream/stream.h Sun Feb 19 13:15:41 2012 +0000 @@ -99,7 +99,18 @@ #define STREAM_CTRL_GET_ANGLE 10 #define STREAM_CTRL_SET_ANGLE 11 #define STREAM_CTRL_GET_NUM_TITLES 12 +#define STREAM_CTRL_GET_LANG 13 +enum stream_ctrl_type { + stream_ctrl_audio, + stream_ctrl_sub, +}; + +struct stream_lang_req { + enum stream_ctrl_type type; + int id; + char buf[40]; +}; typedef enum { streaming_stopped_e,