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:
@@ -69,9 +69,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
LOG("[INFO]: Initialised stream for `%s`\n", stream.name);
|
||||
end:
|
||||
stream_stop(&stream);
|
||||
if (pipe)
|
||||
fclose(pipe);
|
||||
stream_stop(&stream);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user