X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess_filter%2Fdump.c;h=a47445932cf2cd5cfebe88f916a63c8fd0bdd15f;hb=806cf5165824be921bf2402ecf11fd3ee6501f9c;hp=22d2e8a60270f990ae26a35ce9f0dc043768bb6b;hpb=552e595131c5f1d66eba8e3c22c2b1c509be5153;p=vlc diff --git a/modules/access_filter/dump.c b/modules/access_filter/dump.c index 22d2e8a602..a47445932c 100644 --- a/modules/access_filter/dump.c +++ b/modules/access_filter/dump.c @@ -56,11 +56,14 @@ vlc_module_begin (); add_bool ("dump-force", VLC_FALSE, NULL, FORCE_TEXT, FORCE_LONGTEXT, VLC_FALSE); + change_safe(); add_integer ("dump-margin", DEFAULT_MARGIN, NULL, MARGIN_TEXT, MARGIN_LONGTEXT, VLC_FALSE); + change_safe(); + vlc_module_end(); -static int Read (access_t *access, uint8_t *buffer, int len); +static ssize_t Read (access_t *access, uint8_t *buffer, size_t len); static block_t *Block (access_t *access); static int Seek (access_t *access, int64_t offset); static int Control (access_t *access, int cmd, va_list ap); @@ -180,7 +183,7 @@ error: } -static int Read (access_t *access, uint8_t *buffer, int len) +static ssize_t Read (access_t *access, uint8_t *buffer, size_t len) { access_t *src = access->p_source;