When there is no video pid (service type is Radio), start the audio stream right away. Fixes ticket #59
This commit is contained in:
parent
e0630b7259
commit
058c59221b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue