Add quvi_media_stream_select
commita53a0221c669ccd73752cded5cad299a9c9c0fad
authorToni Gundogdu <legatvs@gmail.com>
Sat, 28 Jul 2012 14:16:05 +0000 (28 17:16 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Tue, 31 Jul 2012 08:48:07 +0000 (31 11:48 +0300)
treef844a395b5ef8ca06f166e56ad8223c7a65d64ab
parent3007742da4dbfb765a64449c2f8a0e3fb62e5f43
Add quvi_media_stream_select

This patch adds the quvi_media_stream_select function which may be used
to select the stream by its format ID from the available streams. It
supports patterns, comma-separated values and adds support for the
'croak' keyword.

This feature was initially created to allow users specify a list of
formats instead of only one, with a bailout method ('croak') to generate
an error if nothing matched.

Originally this was intended to be added to the quvi/util.lua:choose_format
function but was later replaced with a separate C API function to complement
the qargs.stream support in libquvi 1.0 .
src/api/Makefile.am
src/api/doxy/glossary_termino.dp
src/api/doxy/main.dp
src/api/doxy/parse_media.dp
src/api/doxy/select_stream.dp [new file with mode: 0644]
src/api/media_stream_select.c [new file with mode: 0644]
src/quvi-1.0/quvi/qerror.h
src/quvi-1.0/quvi/qfunc.h