From 300fde4c81a0746fb777a51cc95c56846b528bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 3 May 2007 12:36:15 +0200 Subject: Make _x_buf_(audio|video)_name return a pointer to constant string. --- src/xine-engine/buffer.h | 4 ++-- src/xine-engine/buffer_types.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h index 29eacc3c1..ca25dc531 100644 --- a/src/xine-engine/buffer.h +++ b/src/xine-engine/buffer.h @@ -655,7 +655,7 @@ uint32_t _x_fourcc_to_buf_video( uint32_t fourcc_int ) XINE_PROTECTED; * @param buf_type One of the \ref buffer_video "BUF_VIDEO_xxx" values. * @sa _x_buf_audio_name */ -char * _x_buf_video_name( uint32_t buf_type ) XINE_PROTECTED; +const char *_x_buf_video_name( uint32_t buf_type ) XINE_PROTECTED; /** * @brief Returns the \ref buffer_audio "BUF_AUDIO_xxx" for the given formattag. @@ -669,7 +669,7 @@ uint32_t _x_formattag_to_buf_audio( uint32_t formattag ) XINE_PROTECTED; * @param buf_type One of the \ref buffer_audio "BUF_AUDIO_xxx" values. * @sa _x_buf_video_name */ -char * _x_buf_audio_name( uint32_t buf_type ) XINE_PROTECTED; +const char *_x_buf_audio_name( uint32_t buf_type ) XINE_PROTECTED; /** diff --git a/src/xine-engine/buffer_types.c b/src/xine-engine/buffer_types.c index c5e3294f3..f686f61a1 100644 --- a/src/xine-engine/buffer_types.c +++ b/src/xine-engine/buffer_types.c @@ -1137,7 +1137,7 @@ static uint32_t cached_buf_type=0; return 0; } -char * _x_buf_video_name( uint32_t buf_type ) { +const char *_x_buf_video_name( uint32_t buf_type ) { int i; buf_type &= 0xffff0000; @@ -1171,7 +1171,7 @@ static uint32_t cached_buf_type=0; return 0; } -char * _x_buf_audio_name( uint32_t buf_type ) { +const char *_x_buf_audio_name( uint32_t buf_type ) { int i; buf_type &= 0xffff0000; -- cgit v1.2.3