1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00
Commit Graph

92420 Commits

Author SHA1 Message Date
Prince Gupta
01476d5c4e qml: fix warning 2022-04-22 09:40:56 +00:00
Prince Gupta
06e156b01c qml: don't show Video subtitle in video view when no video is available 2022-04-22 09:40:56 +00:00
Prince Gupta
f98a69c5e4 qml: fix padding in VideoDisplayRecentVideos
fixup d8f6e98833
2022-04-22 09:40:56 +00:00
Dave Nicolson
44d44176aa apple: fix typo in comment 2022-04-22 09:22:00 +00:00
Pierre Lamot
69e22f2906 qml: enable global shortcuts in detached playlist 2022-04-22 07:19:08 +00:00
Pierre Lamot
a99c67541b qml: disable global shortcuts when the user has the active focus on a textedit field
this allows to prioritize common shortcuts (Ctrl+C/Ctrl+V for instance) over vlc
custom shortcuts (resp. open media/open url). ideally we would use qt mechanism
onShortcutOverride but this is buggy before 5.13

fix: #26150
2022-04-22 07:19:08 +00:00
Pierre Lamot
99f697cf7c qml: add a property do enable/disable global shortcuts 2022-04-22 07:19:08 +00:00
Pierre Lamot
3fb8366ef2 qml: make the shortcut opening modal window WindowShortcut
the shortcut should open the dialog only when triggered from the main view. The
other shortcuts are kept as application shortcut as triggering the shortcut will
close the associated dialog
2022-04-22 07:19:08 +00:00
Alexandre Janniaux
1e7d9e4e1a tools: bootstrap: remove non-digits from minor version
libtool is notoriously known to have been patched over the time and was
provided as 2.4.7-dirty on archlinux, which makes the integer comparison
test fail since 7-dirty is not an integer.
2022-04-22 06:29:27 +00:00
Alexandre Janniaux
bb13291437 tools: bootstrap: use shell || instead of test -o
shell || nicely handles the commands on the other lines without escaping
the end of line, which provides better error message in case of error.
In addition, priority of operators is much more obvious since the []
test syntax provides a visible scope-like feeling.
2022-04-22 06:29:27 +00:00
Thomas Guillem
205963ad09 smb2: fix anonymous login
Not sure when this regression happened on the libsmb2 side.
But setting the password to an empty string do enable anonymous login
now.
2022-04-21 15:40:48 +00:00
Thomas Guillem
80dd05f921 input_item: category: use a vlc_list
Instead of the legacy array.
2022-04-21 11:59:15 +00:00
Thomas Guillem
960ef3f8ef smb2: destroy the context in case or errors from smb2_generic_cb
Errors can also be reported via generic cbs, that will cause the
vlc_smb2_mainloop to abort. In that case, we should destroy the smb2
context to fix the issue mentioned by 924c951518
2022-04-20 12:11:47 +00:00
Thomas Guillem
5264a62539 smb2: also clear op->smb2 in case of error
op->smb2 won't be used in case of error but it is cleaner like that.
2022-04-20 12:11:47 +00:00
Thomas Guillem
0d51ab8a3e smb2: return errno directly
No changes since this function is only checked for != 0 (for now).
2022-04-20 12:11:47 +00:00
Thomas Guillem
93b55c9f53 smb2: rework error handling from smb2_service_fd 2022-04-20 12:11:47 +00:00
Thomas Guillem
e9acccaca3 smb2: homogenize status and error functions 2022-04-20 12:11:47 +00:00
Thomas Guillem
38891c2dc3 aout: filters: move the vout ownership to aout_filters
So that the aout_filters keep a strong reference on the vout it created
in order to control it.
2022-04-19 09:55:04 +02:00
Thomas Guillem
f834379e7e aout: filters: only create a clock when necessary
Only the visualisation aout filters need the clock for the vout (for
now).

Create one slave clock per visualisation aout filter instead of always
creating one for all visualisation aout filters.
2022-04-19 09:55:04 +02:00
Thomas Guillem
d48a8808a0 aout: filters: factorize filter destroy 2022-04-19 09:55:04 +02:00
Thomas Guillem
278efe4483 aout: filters: use an intermediate struct to hold filters
In order to hold more variables per filter, cf. next commits.
2022-04-19 09:55:04 +02:00
Prince Gupta
b7b5fd49c8 qt: improve entry point formatting 2022-04-18 16:11:05 +00:00
Maxime Chapelet
3331e96f97 extra/package : fix tvOS compilation with proper bitcode flag 2022-04-18 08:34:38 +00:00
Mehdi Sabwat
2355d2cf3f contrib: disable ubsan in gme
ubsan is enabled in the contrib recipe :
b3d158a304/CMakeLists.txt (lines-67)

This will require vlc to be always built with ubsan and we don't want this in production.
2022-04-17 12:56:20 +00:00
Rémi Denis-Courmont
78615226b6 configure: remove unused header check 2022-04-17 02:55:02 +00:00
Rémi Denis-Courmont
d2ef799a6f override: use X_DISPLAY_MISSING 2022-04-17 02:55:02 +00:00
Alexandre Janniaux
6ffd460803 libplacebo: display: fix variable type
pl-output-hint is an integer variable, and it was leading to warnings
when compiling:

    ../../modules/video_output/libplacebo/display.c: In function 'UpdateColorspaceHint':
    ../../modules/video_output/libplacebo/display.c:499:5: warning: case label value exceeds maximum value for type [-Wswitch-outside-range]
      499 |     case OUTPUT_HDR10:
          |     ^~~~
    ../../modules/video_output/libplacebo/display.c:503:5: warning: case label value exceeds maximum value for type [-Wswitch-outside-range]
      503 |     case OUTPUT_HLG:
          |     ^~~~
    ../../modules/video_output/libplacebo/display.c:477:5: warning: switch condition has boolean value [-Wswitch-bool]
      477 |     switch (var_InheritBool(vd, "pl-output-hint")) {
          |     ^~~~~~
2022-04-15 15:05:59 +00:00
Zhao Zhili
9f41f57490 avformat: demux: use avio_context_free to free AVIOContext 2022-04-15 14:41:18 +00:00
Thomas Guillem
06e361b127 dsm: fix leak
Regression from 31f97cbea3
2022-04-15 12:05:45 +00:00
Romain Vimont
d6cfada7d4 opengl: use texture_rg when available
GL_RED and GL_RG are available since OpenGL 3.0 and OpenGL ES 3.0, or
via OpenGL extensions.
2022-04-15 08:43:55 +00:00
Romain Vimont
1607231e79 opengl: expose OpenGL version major
Extract version check to a separate static inline function.
2022-04-15 08:43:55 +00:00
Romain Vimont
4bc8c7c84e opengl: remove init() callback from interop
The function opengl_interop_init() is now used only by interop_sw().

Move its implementation and remove the init() callback.
2022-04-15 08:43:55 +00:00
Romain Vimont
b813327e1e opengl: reorder initialization
This prepares further commits.
2022-04-15 08:43:55 +00:00
Romain Vimont
a22a08af90 opengl: fix leak on error
Free the private instance on error.
2022-04-15 08:43:55 +00:00
Romain Vimont
c344522ff2 opengl: init textures properties from modules
All interop modules reused the util function opengl_interop_init()
(written for the software interop) to initialize the textures properties
from the chroma.

However, the actual texture format may not always be deduced from the
chroma: only the interop implementations have the full knowledge of the
texture details.

Therefore, initialize texture properties directly from each interop
implementation.

Fixes #26735
Fixes #26769
2022-04-15 08:43:55 +00:00
Romain Vimont
a4b20be00c opengl: expose GetTexFormatSize() in interop
This will allow to call this function from interop modules.

This function is currently called from opengl_interop_init_impl() (the
init function pointer), which will be removed (so this narrows the scope
of helpers code exposed to modules).

In the future, more work will be needed to also remove this function
pointer.
2022-04-15 08:43:55 +00:00
Romain Vimont
9a22bbd93f opengl: forward format to sampler
The interop determines the format (currently based on the chroma and the
existence of the extension "GL_ARB_texture_rg").

Store this format in the vlc_gl_format, so that the sampler doesn't have
to guess by performing the same checks.
2022-04-15 08:43:55 +00:00
Benjamin Arnaud
93626af823 qt/controlbar_profile_model: Update presets 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
981631302c qt/controlbar_profile: Update Videoplayer default preset 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
282e6ac584 qt/player_controlbar_model: Rename 'Mainplayer' to 'Videoplayer' 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
999a8e9ad2 qml/Player: Add 'Audio Player' custom toolbar support 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
335b019ab7 qt/player_controlbar_model: Update dictionnary labels 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
ac5e73889e qt/player_controlbar_model: Add 'Audio Player' and presets 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
406a08e2df qt/control_list_filter: Add NAVIGATION_BUTTONS support 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
7b801110a3 qml/ControlbarControls: Add NAVIGATION_BUTTONS 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
387892ccb2 qt/controlbar_profile_model: Replace TELETEXT_BUTTONS with NAVIGATION_BUTTONS 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
76942f710e qml/controlbarcontrols: Create NavigationWidget 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
02b7d2491e qml/ControlLayout: Update the 'defaultSize' binding 2022-04-15 08:12:09 +00:00
Benjamin Arnaud
2d886b18ff qt/control_list_model: Deprecate MENU_BUTTON and BACK_BUTTON 2022-04-15 08:12:09 +00:00
Felix Paul Kühne
627ab4febb appleOS build script: disable decklink 2022-04-14 11:36:39 +00:00