Commit Graph

95223 Commits

Author SHA1 Message Date
Claudio Cambra 70fd9c8b3d macosx: Use QuickLook to create thumbnails for collection view items in Browse
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-09 20:51:20 +00:00
Claudio Cambra aad3a0a227 macosx: Use actual filetype icons in browse collection view items
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-09 20:51:20 +00:00
Johannes Kauffmann d641b2b25d meson: qt: add missing csdbuttonmodel sources
This was causing a link failure:

/usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1590: undefined reference to `CSDButton::staticMetaObject'

It was recently added by 99ee50c554.
2023-01-08 16:12:16 +00:00
Johannes Kauffmann bdf9d38088 meson: opengl: implement interop_sw as module
Following cf672816a0, remove it from the
common gl sources and implement it as a module.
2023-01-08 14:40:04 +00:00
Claudio Cambra 49a0bccff7 macosx: Ensure correct menu items are shown and hidden depending on represented item for VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra e7646b43a8 macosx: Make the media source table view in VLCLibraryWindow XIB use VLCLibraryTableView as its customclass
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 60186f485e macosx: Add support for VLCMediaSourceDataSource in VLCLibraryTableView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 45f3d56cfc macosx: Make library/input item properties strong as this led to null item objects when menu controller used in table views
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 54b7fc5bfd macosx: Add and use new mediaSourceInputNodeAtRow internal method in VLCmediaSourceDataSource to eliminate duplication
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra b6ff85a803 macosx: Add mediaSourceInputItemAtRow method to VLCMediaSourceDataSource
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 61d1019fa2 macosx: Differentiate between local and remote inputItems in VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra c293bd9f51 macosx: Add menu controller to VLCMediaSourceCollectionViewItem
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 2379d0b8d7 macosx: Add path property to VLCInputItem
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra a94e550878 macosx: Add support for moving input item to trash in VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 1dd7a0fe76 macosx: Add support for revealing input item in finder in VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra d8b4c6c8c0 macosx: Add support for playing input item in VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 37055e1c98 macosx: Hide or show specific menu items for input items in VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra dad5ac291e macosx: Add representedInputItem to VLCLibraryMenuController
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Claudio Cambra 0b163e8794 macosx: Make representedItem in VLCLibraryMenuController a weak property rather than a setter and a private member
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-08 10:29:36 +00:00
Rémi Denis-Courmont 9d78b14ed1 win32: don't define PATH_MAX
That's only used once in the entire code base, in a Linux-specific file.
2023-01-08 08:55:54 +00:00
Steve Lhomme a5e1a194b5 hxxx_nal: use size_t for the move values
They seem to represent a size for data in memory (size in block allocation) and
offset for a buffer memmove().
2023-01-07 22:21:26 +00:00
Steve Lhomme 47db802872 mux/avi: use uint32_t for buffer offset
The values are read from size_t anyway, nothing to do with a file offset.
They are read from 32-bit variables are written as 32-bit variables.
2023-01-07 22:21:26 +00:00
Steve Lhomme 3b3a8b396f vlc_fs: always map lseek to _lseeki64 on Windows
We can safely pass int64_t offsets this way.
2023-01-07 22:21:26 +00:00
Steve Lhomme d4b73a5443 sout: use uint64_t for seeking offsets
We don't need to depend on the flimsy off_t. This is in line with the way file
and stream offsets are used in access modules.
2023-01-07 22:21:26 +00:00
Steve Lhomme 3462d4becb configure: remove skins2 hack to undefine the toolchain off_t 2023-01-07 22:21:26 +00:00
Steve Lhomme 36d83f710e vlc_common: don't redefine off_t to a larger type on Windows
That makes our usage of mingw-w64 structures like stat, _stat32, _stat64i32
invalid. Plus calls to functions expecting a smaller type.

If we need a bigger type, we need to use our own.

We already set _FILE_OFFSET_BITS so that off_t can be larger than usual.
2023-01-07 22:21:26 +00:00
Steve Lhomme 7413126744 taglib: don't cast the file st_size to a possibly smaller type
We can just use auto and always get the proper type.
2023-01-07 22:21:26 +00:00
Steve Lhomme 5da9f85b18 archive: fix the type used for libarchive_skip_cb
It is not using off_t.
2023-01-07 22:21:26 +00:00
Steve Lhomme 15d669cc80 configure: add missing SSIZE_MAX when ssize_t is missing
There's no way one can exist without the other. And we need SSIZE_MAX in many
parts of the code.
2023-01-07 20:39:45 +00:00
Steve Lhomme e030e04e5d meson: define missing ssize_t and SSIZE_MAX from ptrdiff_t
ptrdiff_t is available in C11
2023-01-07 20:39:45 +00:00
Steve Lhomme 2be4b792d2 configure: use ptrdiff_t for missing ssize_t
It's closer to the definition and use of ssize_t (size_t that can hold  -1)
than a basic int.
2023-01-07 20:39:45 +00:00
Steve Lhomme fab6a26a95 contrib: run meson setup to configure the project
Running meson without the setup command is deprecated and ambiguous.
2023-01-07 10:00:32 +00:00
Thomas Guillem 560dde16fc mediacodec_ndk: use NdkMediaCodec.h
For defines, enums and types, but we still have to declare our own
function prototypes since we use fonctin via dlsym.
2023-01-07 09:17:15 +00:00
Sean McGovern 9bccd7b7aa welcome to 2023 2023-01-07 08:51:39 +00:00
Nicolas Zunker 30b938df71 access/amt: Support for IPv6 2023-01-07 05:39:20 +00:00
Jorge Bellon c752a43a75 DBus control module: return DBus error message instead of entering an infinite loop 2023-01-06 23:29:41 +00:00
Steve Lhomme 780cfad471 winvlc: clean function pointer definition 2023-01-06 14:46:46 +00:00
Steve Lhomme 6a7fbc05b2 rcu: use the thread_local define for thread local variables 2023-01-06 14:46:46 +00:00
Steve Lhomme 087673617d picture_pool: avoid allocating more than POOL_MAX pictures 2023-01-06 14:46:46 +00:00
Steve Lhomme fe48cc9f73 vlc_common: add missing defines when not compiled with gcc/clang 2023-01-06 14:46:46 +00:00
Steve Lhomme 816af9928d vlc_common: don't use __has_attribute() if it's not defined
That's how it's done in other places.
2023-01-06 14:46:46 +00:00
Steve Lhomme 14c1c439ed vlc_tick: do explicit float to integer conversion 2023-01-06 14:46:46 +00:00
Steve Lhomme e03c404b4d vlc_network: define SHUT_xxx values on Windows if they are missing
They are defined in sys/socket.h on POSIX systems.
2023-01-06 14:46:46 +00:00
Steve Lhomme 6a46f1152d compat: define tfind family of functions regardless of the search.h status
The existence of search.h is not relevant for that. search.h may exist but does
not provide tfind, as on Windows.

If tfind.c is included for compilation, then the code needs to be built.
2023-01-06 14:46:46 +00:00
Steve Lhomme 33dc4d1354 vlc_fixups.h: remove unused structure and enums
We only need to define them if they are used in an API but they are not. The
names are very generic and may collide with some defines, so avoid potential
compilation issues.

Only the VISIT enum is needed by twalk().
2023-01-06 14:46:46 +00:00
Steve Lhomme 7c43bcba27 access/dtv: move the lfind() Windows hack in the module
So that we don't have to include search.h each time vlc_fixups.h is used.

The Win32 prototype of lfind() expects an unsigned* for 'nelp', not a size_t*.
2023-01-06 14:46:46 +00:00
Steve Lhomme f9273339fa access/dtv: use ARRAY_SIZE() instead of local variant 2023-01-06 14:46:46 +00:00
Steve Lhomme 545d52eb83 tools: raise the minimum Meson version to 0.60
This is the minimum version used to build VLC.
2023-01-06 13:13:38 +00:00
Steve Lhomme 5dede0646e tools: update Meson to 1.0.0 2023-01-06 13:13:38 +00:00
Claudio Cambra 12ec5c8508 macosx: Give control bar repeat button an action
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-01-06 12:23:05 +00:00