Commit 9fb0c96b authored by Tim Janik's avatar Tim Janik

SRC: wmget.cc: support '--json -' as alias for /dev/stdout

Signed-off-by: 's avatarTim Janik <timj@gnu.org>
parent aa4fae08
......@@ -169,7 +169,7 @@ public:
void
print_json (const WavData& wav_data, const std::string &json_file, const double speed)
{
FILE *outfile = fopen (json_file.c_str(), "w");
FILE *outfile = fopen (json_file == "-" ? "/dev/stdout" : json_file.c_str(), "w");
if (!outfile)
{
perror (("audiowmark: failed to open \"" + json_file + "\":").c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment