aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2014-12-18 19:02:51 +0100
committerMarc Schink <swo-dev@marcschink.de>2014-12-20 17:07:43 +0100
commit7b2d573a59e0dd06f838886cac3a0cdd960eaa2c (patch)
tree1e4a4b5ecf3f27a95c52ac7b9ce0d31f6917c1ce
parent20d6d9e94f96b1838a0d8df619c2c76892916384 (diff)
Fix wrong error check.
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index fe137b7..04f7670 100644
--- a/src/main.c
+++ b/src/main.c
@@ -281,8 +281,8 @@ int main(int argc, char **argv)
ret = libswo_decode(ctx, 0, LIBSWO_DF_EOS);
- if (ret != LIBSWO_OK) {
- g_critical("libswo_feed() failed: %s.\n",
+ if (ret < LIBSWO_OK) {
+ g_critical("libswo_decode() failed: %s.\n",
libswo_strerror_name(ret));
g_io_channel_unref(input);
libswo_exit(ctx);