mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-09 15:27:22 -05:00
Merge pull request #336 from wormuz/fix-mbe-playback-arg-order
Fix -r option argument order dependency
This commit is contained in:
@@ -3088,7 +3088,6 @@
|
||||
opts.dmr_stereo = 0;
|
||||
state.dmr_stereo = 0;
|
||||
sprintf (opts.output_name, "MBE Playback");
|
||||
state.optind = optind;
|
||||
break;
|
||||
case 'l':
|
||||
opts.use_cosine_filter = 0;
|
||||
@@ -3098,6 +3097,10 @@
|
||||
exit (0);
|
||||
}
|
||||
}
|
||||
|
||||
// Set optind after getopt completes so -r works regardless of argument order
|
||||
if (opts.playfiles == 1)
|
||||
state.optind = optind;
|
||||
|
||||
if (opts.resume > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user