summaryrefslogtreecommitdiff
path: root/codecs/codecs.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2015-09-04 17:12:25 +0200
committerGuy Harris <guy@alum.mit.edu>2015-09-09 17:53:08 +0000
commitecc62d8706ad4ed7768cde31dcd4476b4d2389a9 (patch)
treeb1fc6ad1945a8749383118623d88ac1dcef3feed /codecs/codecs.c
parent8a8a82d1b672ebefdc65ea1f316b725fabe47954 (diff)
downloadwireshark-ecc62d8706ad4ed7768cde31dcd4476b4d2389a9.tar.gz
codecs/gtk: fix int to size_t
Change-Id: I8f467f09375c8227c4b70aef47ff3a590a0c00d7 Reviewed-on: https://code.wireshark.org/review/10413 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'codecs/codecs.c')
-rw-r--r--codecs/codecs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/codecs/codecs.c b/codecs/codecs.c
index 07a183ff7a..f7921eade2 100644
--- a/codecs/codecs.c
+++ b/codecs/codecs.c
@@ -93,6 +93,7 @@ register_codec_plugin(gpointer data, gpointer user_data _U_)
(plugin->register_codec_module)();
}
+
/*
* For all codec plugins, call their register routines.
*/
@@ -180,19 +181,19 @@ void codec_release(codec_handle_t codec, void *context)
(codec->release_fn)(context);
}
-int codec_get_channels(codec_handle_t codec, void *context)
+unsigned codec_get_channels(codec_handle_t codec, void *context)
{
if (!codec) return 0;
return (codec->channels_fn)(context);
}
-int codec_get_frequency(codec_handle_t codec, void *context)
+unsigned codec_get_frequency(codec_handle_t codec, void *context)
{
if (!codec) return 0;
return (codec->frequency_fn)(context);
}
-int codec_decode(codec_handle_t codec, void *context, const void *input, int inputSizeBytes, void *output, int *outputSizeBytes)
+size_t codec_decode(codec_handle_t codec, void *context, const void *input, size_t inputSizeBytes, void *output, size_t *outputSizeBytes)
{
if (!codec) return 0;
return (codec->decode_fn)(context, input, inputSizeBytes, output, outputSizeBytes);