Problem with multiple PSI streams
Andrew de Quincey
adq_dvb at lidskialf.net
Tue Dec 17 20:14:53 CET 2002
Hi, with the new API, I've just realised I was trying to add multiple
PSI streams to the same dvbpsi demuxer.... this means I got masses of
discontinuity errors, because it was receiving packets from two seperate
streams, which obviously have out of sync TS counters.
The solution is obvious; have a seperate h_dvbpsi for each PSI stream
you want to decode... but this means clients of the library have to do
more work; get a packet, check the PID, work out which h_dvbpsi is
appropriate for that PID, and send it to it.. makes things a little more
complex than I would have expected.
A solution might be: when registering a table with the demux (e.g. with
dvbpsi_AttachSDT()), to also supply the PID that this table will appear
on.. the internals of dvbpsi_PushPacket can then look up the correct
discontinuity counter in an internal table and act appropriately.
My patch for debug XML and EIT support is nearly ready; hopefully get it
to you guys tomorrow.
--
This is the libdvbpsi-devel mailing-list, see http://www.videolan.org/libdvbpsi/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the libdvbpsi-devel
mailing list