aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r--src/main/extractor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index a1bcc04..b0a5137 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -564,11 +564,6 @@ do_extract (struct EXTRACTOR_PluginList *plugins,
564 ec.seek = &in_process_seek; 564 ec.seek = &in_process_seek;
565 ec.get_size = &in_process_get_size; 565 ec.get_size = &in_process_get_size;
566 ec.proc = &in_process_proc; 566 ec.proc = &in_process_proc;
567 if (-1 == EXTRACTOR_datasource_seek_ (ds, 0, SEEK_SET))
568 {
569 LOG ("Failed to seek to 0 for in-memory plugins\n");
570 return;
571 }
572 for (pos = plugins; NULL != pos; pos = pos->next) 567 for (pos = plugins; NULL != pos; pos = pos->next)
573 { 568 {
574 if (EXTRACTOR_OPTION_IN_PROCESS != pos->flags) 569 if (EXTRACTOR_OPTION_IN_PROCESS != pos->flags)
@@ -577,6 +572,11 @@ do_extract (struct EXTRACTOR_PluginList *plugins,
577 continue; 572 continue;
578 ctx.plugin = pos; 573 ctx.plugin = pos;
579 ec.config = pos->plugin_options; 574 ec.config = pos->plugin_options;
575 if (-1 == EXTRACTOR_datasource_seek_ (ds, 0, SEEK_SET))
576 {
577 LOG ("Failed to seek to 0 for in-memory plugins\n");
578 return;
579 }
580 pos->extract_method (&ec); 580 pos->extract_method (&ec);
581 if (1 == ctx.finished) 581 if (1 == ctx.finished)
582 break; 582 break;