Skip to content

core: ensure gst_init_get_option_group not called when GST_DISABLE_OPTION_PARSING set

W. Michael Petullo requested to merge flyn/gstreamer:option-parsing into master

The --disable-option-parsing flag breaks applications that assume gst_init_get_option_group() initializes GStreamer. The gst_init_get_option_group() function returns NULL and does nothing to initialize GStreamer in this case. The --disable-option-parsing is meant only for specialized scenarios, and thus should never be set when compiling an application that makes use of gst_init_get_option_group().

This adds an assertion that forbids called gst_init_get_option_group() when GST_DISABLE_OPTION_PARSING is set.

See also issue #388 (closed).

Merge request reports