From 10dc43f2fb956f0398d5de32da984bf14c081926 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 4 Aug 2018 20:42:25 +0200 Subject: [PATCH] Use streamfile helpers --- src/meta/txth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meta/txth.c b/src/meta/txth.c index 235b9ddd..d1bab2c5 100644 --- a/src/meta/txth.c +++ b/src/meta/txth.c @@ -397,7 +397,7 @@ static STREAMFILE * open_txth(STREAMFILE * streamFile) { /* try "(path/)(name.ext).txth" */ get_streamfile_name(streamFile,filename,PATH_LIMIT); strcat(filename, ".txth"); - streamText = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE); + streamText = open_streamfile(streamFile,filename); if (streamText) return streamText; /* try "(path/)(.ext).txth" */ @@ -406,13 +406,13 @@ static STREAMFILE * open_txth(STREAMFILE * streamFile) { strcat(filename,"."); strcat(filename, fileext); strcat(filename, ".txth"); - streamText = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE); + streamText = open_streamfile(streamFile,filename); if (streamText) return streamText; /* try "(path/).txth" */ get_streamfile_path(streamFile,filename,PATH_LIMIT); strcat(filename, ".txth"); - streamText = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE); + streamText = open_streamfile(streamFile,filename); if (streamText) return streamText; /* not found */