On 26.01.2009 08:39, Klaus Schmidinger wrote: > On 25.01.2009 23:53, Udo Richter wrote: >> Attached is a new version of cDevice::PlayTsVideo and >> cDevice::PlayTsAudio that properly handles partially accepted buffers of >> the PlayVideo and PlayAudio functions. The original functions would >> discard any partially written data. > > By definition these two functions shall write "all or nothing". > So the higher level functions needn't handle any partially written data.
But in fact they write all or nothing or timeout after one second, in which case they return how much was written. And it seems as if these timeouts do happen. If you change that behavior so that they never timeout (like in VDR 1.7.2/1.7.3), then PES playback frequently hangs for fractions of a second for me. And with the timeout and no partial buffer handling (as in VDR 1.7.4), any TS playback frequently drops the remains of a buffer, causing massive picture breakdown. Cheers, Udo _______________________________________________ vdr mailing list firstname.lastname@example.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr