mpegtsmux: Avoid crash releasing pad with NULL prog
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 7 Jul 2020 11:33:53 +0000 (13:33 +0200)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 7 Jul 2020 12:05:04 +0000 (14:05 +0200)
commitcba9ba9b38de559de82b54bf66fef0a7f4c1af94
tree48c10df900c7c803cca27c133279949a7e09a783
parent9e977832c1761e3ad002fdfe14a9c3881a60bd45
mpegtsmux: Avoid crash releasing pad with NULL prog

If we release a pad while the muxer is running which has never been used
for aggregation (thus it does not have an assigned program), `prog` is
NULL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1411>
gst/mpegtsmux/gstbasetsmux.c