mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
mpegtsbase: Don't call program_stopped with a NULL program
This commit is contained in:
parent
219c90ce34
commit
e3839f0241
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue