[vlc-commits] [Git][videolan/vlc][master] 6 commits: Introduce VLC_EACCES error code

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Wed Jul 14 15:06:11 UTC 2021



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
2e4165c0 by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
Introduce VLC_EACCES error code

EACCES means that an operation is not possible in the current state.

This is not to be confused with EPERM meaning that the user does not
have the necessary credentials. Also compare HTTP results 401 and 403.

Also compare with EINVAL (VLC_EBARVAR) meaning that operating is not
possible because the value of a parameter is invalid.

- - - - -
aebb1110 by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
Introduce VLC_ENOTSUP error code

Better than VLC_EGENERIC when something is understood to be unsupported
on the local system.

- - - - -
dd20ace5 by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
Rename VLC_EBADVAR to VLC_EINVAL

- - - - -
6a69daad by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
Use VLC_EINVAL rather than VLC_ENO*

VLC_ENO* means that something cannot be found (usually by name/ID).

VLC_EINVAL means that a parameter value is invalid.

- - - - -
d1c2a20a by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
gst: use VLC_ENOMEM rather than VLC_ENOMOD

...when failing to instantiate an object.

- - - - -
f32f2892 by Rémi Denis-Courmont at 2021-07-14T14:53:16+00:00
Rationalise not found error codes

We don't need 4 different codes for essentially the same thing, which
is that a certain thing could not be found.

- - - - -


30 changed files:

- doc/browsing.txt
- include/vlc_common.h
- include/vlc_variables.h
- modules/access/dvb/access.c
- modules/access/dvb/scan.c
- modules/access/mms/mmstu.c
- modules/access/satip.c
- modules/codec/avcodec/d3d11va.c
- modules/codec/avcodec/dxva2.c
- modules/codec/gstreamer/gstdecode.c
- modules/control/cli/player.c
- modules/control/cli/playlist.c
- modules/demux/mp4/mp4.c
- modules/gui/macosx/library/VLCInputItem.m
- modules/gui/macosx/library/VLCLibraryController.m
- modules/gui/macosx/playlist/VLCPlayerController.m
- modules/gui/macosx/playlist/VLCPlaylistController.m
- modules/hw/d3d11/d3d11_processor.c
- modules/hw/mmal/mmal_picture.c
- modules/hw/vdpau/sharpen.c
- modules/lua/libs/misc.c
- modules/lua/libs/playlist.c
- modules/lua/stream_filter.c
- modules/misc/audioscrobbler.c
- modules/mux/mpeg/csa.c
- modules/mux/mpeg/ts.c
- modules/stream_out/chromaprint.c
- modules/stream_out/chromecast/chromecast_demux.cpp
- modules/stream_out/sdi/DBMSDIOutput.cpp
- modules/text_renderer/freetype/fonts/dwrite.cpp


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/75bca603749d8bfb7048a84ea811cbdb19447596...f32f289264fd4a08c8b5f04d8395ea78f358f291

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/75bca603749d8bfb7048a84ea811cbdb19447596...f32f289264fd4a08c8b5f04d8395ea78f358f291
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list