From 058c59221b8ebb55d0c09d40ef5101c286e6745d Mon Sep 17 00:00:00 2001 From: sb1066 Date: Sat, 29 May 2010 08:29:01 +0000 Subject: [PATCH] When there is no video pid (service type is Radio), start the audio stream right away. Fixes ticket #59 --- src/parsers.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parsers.c b/src/parsers.c index 5d9e83e1..32fc2a96 100644 --- a/src/parsers.c +++ b/src/parsers.c @@ -366,6 +366,10 @@ parse_audio(th_transport_t *t, th_stream_t *st, const uint8_t *data, st->st_parser_state = 2; + //There is no video pid, start the stream right away + if(t->tht_dts_start == AV_NOPTS_VALUE && t->tht_servicetype == ST_RADIO) + t->tht_dts_start = st->st_curdts; + assert(len >= 0); if(len == 0) return;