diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-14 18:34:57 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-14 18:34:57 +0000 |
commit | c79dba5d012f5f8416c189e76a4b8b9a55c729da (patch) | |
tree | b10794f2755e6c1eba4c272271e65bf397bb8733 | |
parent | 8586fc1ea8c8734a515439dd3f6894f843bf7bc2 (diff) | |
download | xine-lib-c79dba5d012f5f8416c189e76a4b8b9a55c729da.tar.gz xine-lib-c79dba5d012f5f8416c189e76a4b8b9a55c729da.tar.bz2 |
Add number of audio and subtitle channels stream information
CVS patchset: 3521
CVS date: 2002/12/14 18:34:57
-rw-r--r-- | include/xine.h.in | 4 | ||||
-rw-r--r-- | src/xine-engine/xine_interface.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index a09c47c05..851c901e2 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine.h.in,v 1.44 2002/12/06 18:30:46 miguelfreitas Exp $ + * $Id: xine.h.in,v 1.45 2002/12/14 18:34:57 esnel Exp $ * * public xine-lib (libxine) interface and documentation * @@ -552,6 +552,8 @@ void xine_register_log_cb (xine_t *self, xine_log_cb_t cb, #define XINE_STREAM_INFO_IGNORE_AUDIO 21 #define XINE_STREAM_INFO_IGNORE_SPU 22 #define XINE_STREAM_INFO_VIDEO_HAS_STILL 23 +#define XINE_STREAM_INFO_MAX_AUDIO_CHANNEL 24 +#define XINE_STREAM_INFO_MAX_SPU_CHANNEL 25 /* xine_get_meta_info */ diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 30656917b..39817b8c9 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_interface.c,v 1.33 2002/12/12 01:58:37 tmmm Exp $ + * $Id: xine_interface.c,v 1.34 2002/12/14 18:34:57 esnel Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -509,6 +509,14 @@ uint32_t xine_get_stream_info (xine_stream_t *stream, int info) { case XINE_STREAM_INFO_VIDEO_HAS_STILL: return stream->stream_info[info]; +/* TODO: + case XINE_STREAM_INFO_MAX_SPU_CHANNEL: + return 0; +*/ + + case XINE_STREAM_INFO_MAX_AUDIO_CHANNEL: + return stream->audio_track_map_entries; + default: printf ("xine_interface: error, unknown stream info (%d) requested\n", info); |