From: <fla...@gm...> - 2007-05-03 10:36:21
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1178188575 -7200 # Node ID 99f3dca6eb90524760fa17e336825e70e7798a15 # Parent e1e397d1fc67ae619962c4e323e66715ba4fbe92 Make _x_buf_(audio|video)_name return a pointer to constant string. diff -r 99f3dca6eb90524760fa17e336825e70e7798a15 -r e1e397d1fc67ae619962c4e323e66715ba4fbe92 src/xine-engine/buffer.h --- a/src/xine-engine/buffer.h Thu May 03 12:36:15 2007 +0200 +++ b/src/xine-engine/buffer.h Wed May 02 23:43:16 2007 +0200 @@ -655,7 +655,7 @@ uint32_t _x_fourcc_to_buf_video( uint32_ * @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( uint * @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 -r 99f3dca6eb90524760fa17e336825e70e7798a15 -r e1e397d1fc67ae619962c4e323e66715ba4fbe92 src/xine-engine/buffer_types.c --- a/src/xine-engine/buffer_types.c Thu May 03 12:36:15 2007 +0200 +++ b/src/xine-engine/buffer_types.c Wed May 02 23:43:16 2007 +0200 @@ -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; |