diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 18:55:25 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-01-02 18:55:25 +0100 |
commit | 1406457b847cac6b63d4d670833e5e47f35b8cf4 (patch) | |
tree | 99caf6dab5b9fe424d0750d98f00b4d00674de23 | |
parent | a4de43679f434ab5d7b5cc71e33919f2895aa30b (diff) | |
download | xine-lib-1406457b847cac6b63d4d670833e5e47f35b8cf4.tar.gz xine-lib-1406457b847cac6b63d4d670833e5e47f35b8cf4.tar.bz2 |
Make _x_vo_scape_aspect_ratio_name return a constant string.
Note that this should probably be replaced with a const string table.
-rw-r--r-- | include/xine/vo_scale.h | 2 | ||||
-rw-r--r-- | src/xine-engine/vo_scale.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/xine/vo_scale.h b/include/xine/vo_scale.h index b8b1a535b..9c7f8f4f3 100644 --- a/include/xine/vo_scale.h +++ b/include/xine/vo_scale.h @@ -183,7 +183,7 @@ void _x_vo_scale_translate_gui2video(vo_scale_t *self, * Returns description of a given ratio code */ -char *_x_vo_scale_aspect_ratio_name(int a) XINE_PROTECTED; +const char *_x_vo_scale_aspect_ratio_name(int a) XINE_PROTECTED; /* * initialize rescaling struct diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c index 5da5ab26e..bae84ea96 100644 --- a/src/xine-engine/vo_scale.c +++ b/src/xine-engine/vo_scale.c @@ -315,7 +315,8 @@ void _x_vo_scale_translate_gui2video(vo_scale_t *this, * Returns description of a given ratio code */ -char *_x_vo_scale_aspect_ratio_name(int a) { +const char *_x_vo_scale_aspect_ratio_name(int a) { + /* TODO replace this with a string table */ switch (a) { case XINE_VO_ASPECT_AUTO: |