mpegtsbase: Don't call program_stopped with a NULL program

This commit is contained in:
Edward Hervey 2011-05-31 12:54:43 +02:00
parent 219c90ce34
commit e3839f0241

View file

@ -447,7 +447,8 @@ mpegts_base_remove_program (MpegTSBase * base, gint program_number)
program =
(MpegTSBaseProgram *) g_hash_table_lookup (base->programs,
GINT_TO_POINTER (program_number));
klass->program_stopped (base, program);
if (program)
klass->program_stopped (base, program);
}
g_hash_table_remove (base->programs, GINT_TO_POINTER (program_number));