descriptor/dr_54.h: document content categories
dvbinfo: OSX Maverick build fix.

Fix error: unknown type name 'ssize_t'; did you mean 'size_t' when building on
OSX Maverick.

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
dvbpsi.h: update DVBPSI_VERSION & DVBPSI_VERSION_INT

I've noticed from commit f93983a7559508e7c1d44ce3cabf7b7558b9ea4f &
the NEWS file that libdvbpsi is on version 1.2.0 now, but in the header
file dvbpsi.h, DVBPSI_VERSION still says 1.1.2 and DVBPSI_VERSION_INT
still says 1.1.1 ...

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
dvbinfo: fix error: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Werror,-Wdeprecated-declarations]

I'm not sure if you will want to apply this patch, but I thought I
should share it and let you decide.  I need it in order to build
libdvbpsi on OSX Mavericks, but I don't actually use the dvbinfo
program.

Fix the following build error when building under OSX:

gcc -DHAVE_CONFIG_H -I. -I../..  -D_FILE_OFFSET_BITS=64 -DDVBPSI_DIST   -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT dvbinfo-dvbinfo.o -MD -MP -MF .deps/dvbinfo-dvbinfo.Tpo -c -o dvbinfo-dvbinfo.o `test -f 'dvbinfo.c' || echo './'`dvbinfo.c
dvbinfo.c:656:13: error: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Werror,-Wdeprecated-declarations]
        if (daemon(1,0) < 0)
            ^
/usr/include/stdlib.h:267:6: note: 'daemon' declared here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0);
         ^
1 error generated.
make[3]: *** [dvbinfo-dvbinfo.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
AUTHORS: Yonathan Yusim added support for descriptor 0xa1
examples/decode_mpeg.c: build fix for Windows platforms.
src/dvbpsi.c: Use va_end() on error path of message functions.
examples/connect.c: Resource leak (CID 28604)
examples/connect.c: Resource leak (CID 28605)
dvbinfo: Dereference after NULL check (CID 17248)
dvbinfo: fix clang: error: argument unused during compilation: '-pthread'

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
test_dr: HACK bypass error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]

gcc -DHAVE_CONFIG_H -I. -I..  -DDVBPSI_DIST   -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT test_dr-test_dr.o -MD -MP -MF .deps/test_dr-test_dr.Tpo -c -o test_dr-test_dr.o `test -f 'test_dr.c' || echo './'`test_dr.c
test_dr.c:49:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_multiple_frame_rate)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:73:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_constrained_parameter)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:85:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_still_picture)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:113:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_multiple_frame_rate)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:143:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_constrained_parameter)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:158:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_still_picture)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:203:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_frame_rate_extension)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:226:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_free_format)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:488:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_external_clock_ref)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:531:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_mdv_valid)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
10 errors generated.
make[2]: *** [test_dr-test_dr.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>