summaryrefslogtreecommitdiff
path: root/src/post
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2014-11-06 15:08:20 +0100
committerTorsten Jager <t.jager@gmx.de>2014-11-06 15:08:20 +0100
commitcf112018e4c9fec2fbb73de0bb4c5bc45fb28e84 (patch)
treec2c5304c30d9a0b0d7dd6513a251c632646ffee4 /src/post
parentb9d648a31218194e9aea8a07d84a9172705b9e66 (diff)
downloadxine-lib-cf112018e4c9fec2fbb73de0bb4c5bc45fb28e84.tar.gz
xine-lib-cf112018e4c9fec2fbb73de0bb4c5bc45fb28e84.tar.bz2
post: silence warnings.
For historical reasons, arg #4 of xine->config->register_enum () is of type (char **). That string array will not be modified though.
Diffstat (limited to 'src/post')
-rw-r--r--src/post/deinterlace/xine_plugin.c6
-rw-r--r--src/post/planar/noise.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/post/deinterlace/xine_plugin.c b/src/post/deinterlace/xine_plugin.c
index de174b3a0..c42a54b0b 100644
--- a/src/post/deinterlace/xine_plugin.c
+++ b/src/post/deinterlace/xine_plugin.c
@@ -86,15 +86,15 @@ typedef struct deinterlace_parameters_s {
* description of params struct
*/
START_PARAM_DESCR( deinterlace_parameters_t )
-PARAM_ITEM( POST_PARAM_TYPE_INT, method, enum_methods, 0, 0, 0,
+PARAM_ITEM( POST_PARAM_TYPE_INT, method, (char **)enum_methods, 0, 0, 0,
"deinterlace method" )
PARAM_ITEM( POST_PARAM_TYPE_BOOL, enabled, NULL, 0, 1, 0,
"enable/disable" )
-PARAM_ITEM( POST_PARAM_TYPE_INT, pulldown, enum_pulldown, 0, 0, 0,
+PARAM_ITEM( POST_PARAM_TYPE_INT, pulldown, (char **)enum_pulldown, 0, 0, 0,
"pulldown algorithm" )
PARAM_ITEM( POST_PARAM_TYPE_INT, pulldown_error_wait, NULL, 0, 0, 0,
"number of frames of telecine pattern sync required before mode change" )
-PARAM_ITEM( POST_PARAM_TYPE_INT, framerate_mode, enum_framerate, 0, 0, 0,
+PARAM_ITEM( POST_PARAM_TYPE_INT, framerate_mode, (char **)enum_framerate, 0, 0, 0,
"framerate output mode" )
PARAM_ITEM( POST_PARAM_TYPE_BOOL, judder_correction, NULL, 0, 1, 0,
"make frames evenly spaced for film mode (24 fps)" )
diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c
index 3af9a1b99..7727ca988 100644
--- a/src/post/planar/noise.c
+++ b/src/post/planar/noise.c
@@ -337,9 +337,9 @@ PARAM_ITEM( POST_PARAM_TYPE_INT, luma_strength, NULL, 0, 100, 0,
"Amount of noise to add to luma channel" )
PARAM_ITEM( POST_PARAM_TYPE_INT, chroma_strength, NULL, 0, 100, 0,
"Amount of noise to add to chroma channel" )
-PARAM_ITEM( POST_PARAM_TYPE_INT, quality, enum_quality, 0, 0, 0,
+PARAM_ITEM( POST_PARAM_TYPE_INT, quality, (char **)enum_quality, 0, 0, 0,
"Quality level of noise" )
-PARAM_ITEM( POST_PARAM_TYPE_INT, type, enum_types, 0, 0, 0,
+PARAM_ITEM( POST_PARAM_TYPE_INT, type, (char **)enum_types, 0, 0, 0,
"Type of noise" )
PARAM_ITEM( POST_PARAM_TYPE_BOOL, pattern, NULL, 0, 1, 0,
"Mix random noise with a (semi)regular pattern" )