workaround for win32 needed "file_name"

Elio Blanca via Lame-dev <[email protected]> Tue, 22 Aug 2017 16:05:36 +0200
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <[email protected]>
This patch fixes builds with libsndfile on non-Windows OSs.

diff -ur lame/frontend/get_audio.c lame-old/frontend/get_audio.c
--- lame/frontend/get_audio.c	2017-08-21 19:10:28.000000000 +0200
+++ lame-old/frontend/get_audio.c	2017-08-22 15:58:56.922243864 +0200
@@ -1005,7 +1005,9 @@
          if (gs_pSndFileIn == NULL) {
              if (global_raw_pcm.in_signed == 0 && global_raw_pcm.in_bitwidth != 8) {
                  error_printf("Unsigned input only supported with bitwidth 8\n");
+#if defined( _WIN32 ) && !defined(__MINGW32__)
                  free(file_name);
+#endif
                  return 0;
              }
              /* set some defaults incase input is raw PCM */

Elio




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot