main: put stream_stop before FILE pointer close

As stream_stop requires a valid FILE pointer (fseek), we need to do it
before we close the pipe.
This commit is contained in:
2026-02-06 06:05:26 +00:00
parent 35a33c7d24
commit 5408fd8101

View File

@@ -69,9 +69,9 @@ int main(int argc, char *argv[])
LOG("[INFO]: Initialised stream for `%s`\n", stream.name); LOG("[INFO]: Initialised stream for `%s`\n", stream.name);
end: end:
stream_stop(&stream);
if (pipe) if (pipe)
fclose(pipe); fclose(pipe);
stream_stop(&stream);
return ret; return ret;
} }