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>
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))