Commit ad7f7c87 authored by Nicholas Jackson's avatar Nicholas Jackson Committed by Nicholas Jackson
Browse files

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: <!114>
parent 1b81e05a
Pipeline #297044 failed with stages
in 40 seconds
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment