aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2015-08-16 14:17:04 +0200
committerMarc Schink <swo-dev@marcschink.de>2015-12-06 14:45:06 +0100
commit55e75873ef9d36b93057045397430dc7b7396794 (patch)
treed94af9b6e6795f0fb31eab90edacbee9f21b89a3
parentecf8b6ae2594ae1244ebf4cc70830024baa4070d (diff)
Update for libswo decoder API changes
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index eedb6f0..4ca166c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -518,9 +518,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- ret = libswo_decode(ctx, 0, 0);
+ ret = libswo_decode(ctx, 0);
- if (ret < LIBSWO_OK) {
+ if (ret != LIBSWO_OK) {
g_critical("libswo_decode() failed: %s.",
libswo_strerror_name(ret));
g_io_channel_unref(input);
@@ -540,9 +540,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- ret = libswo_decode(ctx, 0, LIBSWO_DF_EOS);
+ ret = libswo_decode(ctx, LIBSWO_DF_EOS);
- if (ret < LIBSWO_OK) {
+ if (ret != LIBSWO_OK) {
g_critical("libswo_decode() failed: %s.",
libswo_strerror_name(ret));
g_io_channel_unref(input);