Mercurial > libpostproc.hg
changeset 65:5bef666de27d libpostproc
Make pp_get_mode_by_name_and_quality accept a constant string.
Patch by Diego 'Flameeyes' Petten flameeyes at gmail com
author | benoit |
---|---|
date | Thu, 03 Jan 2008 08:42:02 +0000 |
parents | 1912d7e2858d |
children | 7737e39e74f3 |
files | postprocess.c postprocess.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postprocess.c Thu Jan 03 08:39:38 2008 +0000 +++ b/postprocess.c Thu Jan 03 08:42:02 2008 +0000 @@ -741,7 +741,7 @@ "\n" ; -pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality) +pp_mode_t *pp_get_mode_by_name_and_quality(const char *name, int quality) { char temp[GET_MODE_BUFFER_SIZE]; char *p= temp;
--- a/postprocess.h Thu Jan 03 08:39:38 2008 +0000 +++ b/postprocess.h Thu Jan 03 08:42:02 2008 +0000 @@ -56,7 +56,7 @@ * name is the string after "-pp" on the command line * quality is a number from 0 to PP_QUALITY_MAX */ -pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality); +pp_mode_t *pp_get_mode_by_name_and_quality(const char *name, int quality); void pp_free_mode(pp_mode_t *mode); pp_context_t *pp_get_context(int width, int height, int flags);