diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-27 22:49:38 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-27 22:49:38 +0000 |
commit | 651bba5ba5847cc7c589631cf780937b3f948eae (patch) | |
tree | bd62e6a8d463eac8b6a6e5636ad4eef453ba51ae /src/xine-engine/xine_interface.c | |
parent | 38cf26ec4edfe9c455372cf428601a1b0ff5bdad (diff) | |
download | xine-lib-651bba5ba5847cc7c589631cf780937b3f948eae.tar.gz xine-lib-651bba5ba5847cc7c589631cf780937b3f948eae.tar.bz2 |
Fix 'XINE_STREAM_INFO_MAX_SPU_CHANNEL' property
- Calculate number of spu channels in video_decoder_loop()
- Use 'track_map' for spu channels, just like audio channels
CVS patchset: 3700
CVS date: 2002/12/27 22:49:38
Diffstat (limited to 'src/xine-engine/xine_interface.c')
-rw-r--r-- | src/xine-engine/xine_interface.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 70ae17f8e..959f41469 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.36 2002/12/27 03:40:08 miguelfreitas Exp $ + * $Id: xine_interface.c,v 1.37 2002/12/27 22:49:38 esnel Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -509,14 +509,12 @@ 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; + case XINE_STREAM_INFO_MAX_SPU_CHANNEL: + return stream->spu_track_map_entries; + default: printf ("xine_interface: error, unknown stream info (%d) requested\n", info); |