mpegts: ensure that mux descriptor callback is only called with valid mux

This commit is contained in:
Adam Sutton 2013-09-13 12:56:02 +01:00
parent c5eb0f404f
commit a6e5ee41dc

View file

@ -785,7 +785,7 @@ dvb_nit_callback
tvhtrace(mt->mt_name, " dtag %02X dlen %d", dtag, dlen);
/* User-defined */
if (mt->mt_mux_cb) {
if (mt->mt_mux_cb && mux) {
int i = 0;
while (mt->mt_mux_cb[i].cb) {
if (mt->mt_mux_cb[i].tag == dtag)