mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
gst: Don't fail gst_init() if updating the registry fails
Everything is already marked as initialized at that point and by failing no tracers would be loaded or plugin feature rank overrides would be applied. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2858>
This commit is contained in:
parent
e7858b38f9
commit
e192116c37
1 changed files with 1 additions and 6 deletions
|
@ -820,15 +820,10 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
||||||
* Any errors happening below this point are non-fatal, we therefore mark
|
* Any errors happening below this point are non-fatal, we therefore mark
|
||||||
* gstreamer as being initialized, since it is the case from a plugin point of
|
* gstreamer as being initialized, since it is the case from a plugin point of
|
||||||
* view.
|
* view.
|
||||||
*
|
|
||||||
* If anything fails, it will be put back to %FALSE in gst_init_check().
|
|
||||||
* This allows some special plugins that would call gst_init() to not cause a
|
|
||||||
* looping effect (i.e. initializing GStreamer twice).
|
|
||||||
*/
|
*/
|
||||||
gst_initialized = TRUE;
|
gst_initialized = TRUE;
|
||||||
|
|
||||||
if (!gst_update_registry ())
|
gst_update_registry ();
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
GST_INFO ("GLib runtime version: %d.%d.%d", glib_major_version,
|
GST_INFO ("GLib runtime version: %d.%d.%d", glib_major_version,
|
||||||
glib_minor_version, glib_micro_version);
|
glib_minor_version, glib_micro_version);
|
||||||
|
|
Loading…
Reference in a new issue