[vlc-devel] Debug messages

Francesco, Cuzzocrea francesco at bltitalia.com
Wed May 31 16:38:58 CEST 2017


Where are printed debug messages done inside a module? I wrote an acces 
demux module with

  vlc_module_begin()

      set_shortname(N_("BLT Import"))
      set_description(N_("BLT Files demuxer"))
      set_capability("access_demux", 100)
      set_category(CAT_INPUT)
      set_subcategory(SUBCAT_INPUT_DEMUX)
      set_callbacks(DemuxOpen, DemuxClose)
      add_submodule()
      set_capability("access", 100)

     set_callbacks(AccessOpen, AccessClose)

vlc_module_end()

and inside AccessOpen and DemuxOpen I print a message:

static int AccessOpen(vlc_object_t * obj)
{
     access_t *access = (access_t*)obj;
     access_sys_t* sys = calloc(1,sizeof(*sys));
     unsigned char *p_head = NULL;
     char *path=NULL;

     msg_Dbg(access,"##################   Access Open called");

     if(unlikely(sys == NULL))
         return VLC_ENOMEM;
     access->p_sys = sys;
     return VLC_SUCCESS;

}

static int DemuxOpen(vlc_object_t * obj)
{

     demux_t *dm = (demux_t*)obj;
     demux_sys_t* sys = calloc(1,sizeof(*sys));

     msg_Dbg(dm,"##################  demux Open called");

     if(unlikely(sys == NULL))
         return VLC_ENOMEM;
     dm->p_sys = sys;

   return VLC_SUCCESS;
}

I expect that one of these messages is displayed in the message window 
(CTRL+M) after

selecting verbosity of 2 (debug) but none. I can't figure out if my 
module is correctly loaded or not.

Its name is displayed in the plugin list (Tools -> Plugin and extensions 
-> Plugin tab).

regards

Francesco


More information about the vlc-devel mailing list