# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
#include <assert.h>
#include <time.h>
static void Close (vlc_object_t *);
vlc_module_begin ();
- set_shortname (_("Dump"));
- set_description (_("Dump"));
+ set_shortname (N_("Dump"));
+ set_description (N_("Dump"));
set_category (CAT_INPUT);
set_subcategory (SUBCAT_INPUT_ACCESS_FILTER);
set_capability ("access_filter", 0);
// and there is an off-by-one in the following sprintf().
return;
- const char *home = access->p_libvlc->psz_homedir;
+ const char *home = config_GetHomeDir();
/* Hmm what about the extension?? */
char filename[strlen (home) + sizeof ("/vlcdump-YYYYYYYYY-MM-DD-HH-MM-SS.ts")];