flac/examples
Andrey Astafyev a9557c13fa
examples: Fix error condition processing
Don't attempt to attach failed metadata objects. This also avoids
clobbering the error flag if attaching the objects should succeed.

There may still be problems later, for example calling _delete()
on a possibly null metadata object pointer, but this it at least
and improvement in the compromise between error handling and
readability in C.

Signed-off-by: Ralph Giles <giles@thaumas.net>
2021-06-23 13:24:22 -07:00
..
c examples: Fix error condition processing 2021-06-23 13:24:22 -07:00
cpp examples: Fix error condition processing 2021-06-23 13:24:22 -07:00
CMakeLists.txt Bunch of CMake fixes 2020-05-03 17:13:50 +10:00
Makefile.am Make sure CMake build files end up in release tarball 2019-10-01 08:18:28 +10:00
Makefile.lite Bulk update copyright dates 2016-12-05 06:35:39 +11:00
README Remove traiing whitespace (mostly .c and .h files). 2014-12-05 05:52:30 +11:00

README

Here are several small example programs that use the libraries in different
ways.

The "c" directory has programs that are all in C and use libFLAC.

The "cpp" directory has analogous programs that are all in C++ and use libFLAC++.

The programs are:
c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC
c/encode/file/ - example_c_encode_file - Simple FLAC file encoder using libFLAC
cpp/decode/file/ - example_cpp_decode_file - Simple FLAC file decoder using libFLAC++
cpp/encode/file/ - example_cpp_encode_file - Simple FLAC file encoder using libFLAC++