No audio stream for some dvb-t channel (not each time)
|Assignee:||Andreas Öman||% Done:|
|Found in version:||unknown||Affected Versions:|
With some channels (I'm in France, and I saw the bug on channels of France Télévision Group), the audio stream is not delivered to xbmc every time. I found where is the problem but I don't understand what it mean :
- When the channel start normally, in depacketise function of parser.c, for audio packet, all works well
- When the channel start without an audio stream, depacketize reject all audio packet because startcode = 445 and next_startcode = 448
- A small hack to accept packet when startcode = 445 and next_startcode = 448 resolve the bug. Sometime, one packet is wrongly accepted but after thats, there is no more packet with startcode = 445 and next_startcode = 448
http://pastebin.com/vAFtfgRu (I removed some outputs in the code)
One weirder think : within xbmc, if some delay is added during the channel switching, the bug disappear (almost).
I tried to be as clearer as possible, but if you need more logs or something else, tell me.