[vlc-commits] [Git][videolan/vlc][master] demux: set the module-name when using vlc_module_load()

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 23 10:23:28 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8e11c3ea by Steve Lhomme at 2023-11-23T09:57:43+00:00
demux: set the module-name when using vlc_module_load()

This avoids an error log when using module_unneeded.

- - - - -


1 changed file:

- src/input/demux.c


Changes:

=====================================
src/input/demux.c
=====================================
@@ -200,6 +200,9 @@ demux_t *demux_NewAdvanced( vlc_object_t *p_obj, input_thread_t *p_input,
     if (priv->module == NULL)
         goto error;
 
+    var_Create(p_demux, "module-name", VLC_VAR_STRING);
+    var_SetString(p_demux, "module-name", module_get_object(priv->module));
+
     return p_demux;
 error:
     free( p_demux->psz_filepath );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8e11c3ea1507117e27edc6bcee698ff5d2ec2624

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8e11c3ea1507117e27edc6bcee698ff5d2ec2624
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list