#define FAIL(errmsg) do { \
LOG(VB_PLAYBACK, LOG_DEBUG, LOC + (errmsg)); \
return 0; \
return 1; \
} while (0)
switch (st->codecpar->codec_type)