#172 mpg123 - wildcard problem

1.13.3
closed-fixed
nobody
mpg123 (104)
5
2012-05-01
2012-04-10
pcx
No

I use mpg123.exe (win32 static) for playing audio file MPEG 2.0 layer III, VBR, 22050 Hz mono.
Version 1.9.0 and older playback this file with double(?) speed, version 1.10.0 and newer with correct speed.
If I use the wildcard the version 1.9.0 works good, but the version 1.13.4 is not able to open files.

Program reports:
1. Version 1.9.0
>mpg123_1-9-0.exe -z *.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.2.0; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes

Playing MPEG stream 1 of 1: 2011-09-25xx.mp3 ...

2. version 1.13.4
>mpg123_1-13-4.exe -z *.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.13.4; written and copyright by Michael Hipp and others
free software (LGPL/GPL) without any warranty but with best wishes
[readers.c:1069] error: Cannot open file *.mp3: Invalid argument

Discussion

  • Jonathan Yong

    Jonathan Yong - 2012-04-10

    Later versions of mpg123 uses GetCommandLineW to get the command line without using wmain. It is likely bypassing any custom startup code argv manipulation that you may have.

    Its not an easy fix to simply switch to wmain, since it will not work in regular mingw, only with mingw-w64.

    You can use MSYS or Cygwin bash shell to automatically expand filenames as a temporary solution, the fix will take some time.

     
  • Jonathan Yong

    Jonathan Yong - 2012-04-10

    OK, fixed with trunk r3113.

     
  • Thomas Orgis

    Thomas Orgis - 2012-05-01
    • status: open --> closed-fixed
     
  • Thomas Orgis

    Thomas Orgis - 2012-05-01

    Released in 1.14.0 .

     

Log in to post a comment.