diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2020-02-01 13:07:46 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2020-02-01 13:07:46 +0100 |
commit | 0ce4e8d52fd491268a56c10dbb32fd5c996e2589 (patch) | |
tree | afe5defc2a845f0b65936a1874e4658412eff2cd /src/ufo-roof-read-file.c | |
parent | 44cef2cb16dd2bc55ad34d0b8313f7f314b0107a (diff) | |
download | ufo-roof-0ce4e8d52fd491268a56c10dbb32fd5c996e2589.tar.gz ufo-roof-0ce4e8d52fd491268a56c10dbb32fd5c996e2589.tar.bz2 ufo-roof-0ce4e8d52fd491268a56c10dbb32fd5c996e2589.tar.xz ufo-roof-0ce4e8d52fd491268a56c10dbb32fd5c996e2589.zip |
Initial Python infrastructure to build more complex processing pipelines and the corresponding changes in ROOF filters
Diffstat (limited to 'src/ufo-roof-read-file.c')
-rw-r--r-- | src/ufo-roof-read-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ufo-roof-read-file.c b/src/ufo-roof-read-file.c index a5eb69b..4ee11c6 100644 --- a/src/ufo-roof-read-file.c +++ b/src/ufo-roof-read-file.c @@ -55,7 +55,7 @@ static guint ufo_roof_read_file(UfoRoofReadInterface *iface, uint8_t *buffers, G } -UfoRoofReadInterface *ufo_roof_read_file_new(UfoRoofConfig *cfg, guint id, GError **error) { +UfoRoofReadInterface *ufo_roof_read_file_new(UfoRoofConfig *cfg, const char *path, guint file_id, GError **error) { UfoRoofReadFile *reader = (UfoRoofReadFile*)calloc(1, sizeof(UfoRoofReadFile)); if (!reader) roof_new_error(error, "Can't allocate UfoRoofReadFile"); @@ -67,7 +67,7 @@ UfoRoofReadInterface *ufo_roof_read_file_new(UfoRoofConfig *cfg, guint id, GErro reader->iface.close = ufo_roof_read_file_free; reader->iface.read =ufo_roof_read_file; - reader->fname = g_strdup_printf(cfg->path, id + cfg->first_file_number); + reader->fname = g_strdup_printf(path, file_id); if (!reader->fname) { free(reader); roof_new_error(error, "Can't build file name"); @@ -77,7 +77,7 @@ UfoRoofReadInterface *ufo_roof_read_file_new(UfoRoofConfig *cfg, guint id, GErro if (!reader->fd) { g_free(reader->fname); g_free(reader); - roof_new_error(error, "Can't open file %s", reader->fname); + roof_new_error(error, "Can't open file %i at path %s", file_id, path); } return (UfoRoofReadInterface*)reader; |