From: <fla...@gm...> - 2008-01-02 18:14:38
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1199296525 -3600 # Node ID 4a478f13ae4f1dd51f03fbb608263ad0281299e4 # Parent 37bb096f84c9e095d852b7979f4cd2950d6abcb9 Make _x_vo_scape_aspect_ratio_name return a constant string. Note that this should probably be replaced with a const string table. diff -r 4a478f13ae4f1dd51f03fbb608263ad0281299e4 -r 37bb096f84c9e095d852b7979f4cd2950d6abcb9 include/xine/vo_scale.h --- a/include/xine/vo_scale.h Wed Jan 02 18:55:25 2008 +0100 +++ b/include/xine/vo_scale.h Wed Jan 02 18:50:10 2008 +0100 @@ -183,7 +183,7 @@ void _x_vo_scale_translate_gui2video(vo_ * 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 -r 4a478f13ae4f1dd51f03fbb608263ad0281299e4 -r 37bb096f84c9e095d852b7979f4cd2950d6abcb9 src/xine-engine/vo_scale.c --- a/src/xine-engine/vo_scale.c Wed Jan 02 18:55:25 2008 +0100 +++ b/src/xine-engine/vo_scale.c Wed Jan 02 18:50:10 2008 +0100 @@ -315,7 +315,8 @@ void _x_vo_scale_translate_gui2video(vo_ * 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: |