aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-30 22:47:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-30 22:47:24 +0000
commit8bb8362db8fee5da97c180abe6dd5cd64c0ad2b0 (patch)
tree105b55c6db204c0dfaf9431081c72c64c34e630d
parentc8d8ea6288be0d7b5117197f08739b3e85785367 (diff)
downloadlibextractor-8bb8362db8fee5da97c180abe6dd5cd64c0ad2b0.tar.gz
libextractor-8bb8362db8fee5da97c180abe6dd5cd64c0ad2b0.zip
stuff
-rw-r--r--src/main/extractor.c5
-rw-r--r--src/main/extractor_plugin_main.c2
-rw-r--r--src/main/test_ipc.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index 7b6d911..448079b 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -258,7 +258,10 @@ do_extract (struct EXTRACTOR_PluginList *plugins,
258 plugin_count = 0; 258 plugin_count = 0;
259 for (pos = plugins; NULL != pos; pos = pos->next) 259 for (pos = plugins; NULL != pos; pos = pos->next)
260 { 260 {
261 channels[plugin_count] = pos->channel; 261 if (-1 != pos->seek_request)
262 channels[plugin_count] = pos->channel;
263 else
264 channels[plugin_count] = NULL; /* not running this round, seeking! */
262 plugin_count++; 265 plugin_count++;
263 } 266 }
264 267
diff --git a/src/main/extractor_plugin_main.c b/src/main/extractor_plugin_main.c
index decfa60..6e58b91 100644
--- a/src/main/extractor_plugin_main.c
+++ b/src/main/extractor_plugin_main.c
@@ -96,7 +96,7 @@ struct ProcessingContext
96 96
97 97
98/** 98/**
99 * Moves current absolute buffer position to @pos in @whence mode. 99 * Moves current absolute buffer position to 'pos' in 'whence' mode.
100 * Will move logical position withouth shifting the buffer, if possible. 100 * Will move logical position withouth shifting the buffer, if possible.
101 * Will not move beyond the end of file. 101 * Will not move beyond the end of file.
102 * 102 *
diff --git a/src/main/test_ipc.c b/src/main/test_ipc.c
index 35750b7..1696bbc 100644
--- a/src/main/test_ipc.c
+++ b/src/main/test_ipc.c
@@ -94,6 +94,7 @@ process_replies (void *cls,
94 "Hello world!", 94 "Hello world!",
95 strlen ("Hello world!"))) ) 95 strlen ("Hello world!"))) )
96 { 96 {
97 fprintf (stderr, "Received 'hello world'\n");
97 ret = 1; 98 ret = 1;
98 return 0; 99 return 0;
99 } 100 }
@@ -103,6 +104,7 @@ process_replies (void *cls,
103 "Goodbyte!", 104 "Goodbyte!",
104 strlen ("Goodbye!"))) ) 105 strlen ("Goodbye!"))) )
105 { 106 {
107 fprintf (stderr, "Received 'good bye'\n");
106 ret = 0; 108 ret = 0;
107 return 1; 109 return 1;
108 } 110 }