mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
avmux: fix segfault when a plugin's long_name is NULL
Some plugins register an empty long_name field. Check for this before calling strcmp to avoid a crash. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/114>
This commit is contained in:
parent
1b81e05ab9
commit
ad7f7c87f0
1 changed files with 5 additions and 3 deletions
|
@ -921,9 +921,11 @@ gst_ffmpegmux_register (GstPlugin * plugin)
|
|||
continue;
|
||||
}
|
||||
|
||||
if ((!strncmp (in_plugin->long_name, "raw ", 4))) {
|
||||
GST_LOG ("Ignoring raw muxer %s", in_plugin->name);
|
||||
continue;
|
||||
if (in_plugin->long_name != NULL) {
|
||||
if ((!strncmp (in_plugin->long_name, "raw ", 4))) {
|
||||
GST_LOG ("Ignoring raw muxer %s", in_plugin->name);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (gst_ffmpegmux_get_replacement (in_plugin->name))
|
||||
|
|
Loading…
Reference in a new issue