Commit Graph

102032 Commits

Author SHA1 Message Date
Fatih Uzunoglu 5a98f4b4b3 qml: eliminate unnecessary connections in MainDisplay 2024-04-13 10:05:46 +00:00
Fatih Uzunoglu 73bad34911 qml: do not unload playlist window if not visible 2024-04-13 10:05:46 +00:00
Ash V 62aaef36a8 qml: Ctrl+L shortcut to open the playlist view now works the first time
Added 'updatePlaylistVisible' transition in the 'fsmForceHidden' FSMState of the PlayerPlaylistVisibilityFSM.qml.

Fixes Issue: #28500
2024-04-13 07:37:40 +00:00
Martin Storsjö 48f6723f41 contrib: qt: Backport two patches, fixing the mingw pkg-config files
Previously, the pkg-config files contained a broken "-D_UNICODE>",
which caused build warnings on all Qt source files in VLC, like this:

    In file included from <built-in>:464:
    <command line>:16:17: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
       16 | #define _UNICODE> 1
          |                 ^

Backport a fix from upstream, getting rid of this. Also backport
another patch to add a missing include statement.
2024-04-12 19:04:34 +00:00
Steve Lhomme 3502c02a1d vlc_fixups: only define TIME_UTC if it's not defined
On Android timespec_get() is supported on some API levels. But TIME_UTC is always defined.
2024-04-12 18:35:52 +00:00
Steve Lhomme 012381510b macosx: do vertical flip after picture placement
Vertically swapping the position of the video keeps the place "height".
The vertical position use the inverted position of the bottom position
rather than the top position of the video.
2024-04-12 17:31:19 +00:00
Steve Lhomme 9a321d7cb7 caopengllayer: do vertical flip after picture placement
Vertically swapping the position of the video keeps the place "height".
The vertical position use the inverted position of the bottom position
rather than the top position of the video.
2024-04-12 17:31:19 +00:00
Steve Lhomme 272514cfdd glwin32: do vertical flip after picture placement
Vertically swapping the position of the video keeps the place "height".
The vertical position use the inverted position of the bottom position
rather than the top position of the video.
2024-04-12 17:31:19 +00:00
Steve Lhomme 3f6a893627 android/display: remove unused FlipVerticalAlign()
Since 9c35043b2d.
2024-04-12 17:31:19 +00:00
Steve Lhomme f2e5a46bf6 libplacebo: factorize a vout_display_PlacePicture() call 2024-04-12 17:31:19 +00:00
Steve Lhomme c69fb3d959 libplacebo: do the vertical flipping locally in flipped output
Rather than position to bottom side, we position the top one.
2024-04-12 17:31:19 +00:00
Steve Lhomme c35a90d4ec libplacebo: assume the framebuffer matches the display size
The module always does the swapchain resizing when the core requests it, so the core
is aware of the proper swapchain dimensions.
2024-04-12 17:31:19 +00:00
Steve Lhomme 69c8925e42 libplacebo: simplify placement for 199+
...by grouping the need_vflip calls in a code block.
2024-04-12 17:31:19 +00:00
Steve Lhomme ba322be2e7 vout/opengl: do vertical flip after picture placement
Vertically swapping the position of the video keeps the place "height".
The vertical position use the inverted position of the bottom position
rather than the top position of the video.
2024-04-12 17:31:19 +00:00
darshan jain aa81847cc8 qt: ModalDialog: Setting hideSource in the ShaderEffectSource
Refactor ModalDialog.qml to prevent duplicate rendering by setting ShaderEffectSource hideSource property to true.
This ensure the source item is not visible while applying the GaussianBlur effect.

Fixes: #28578
2024-04-12 16:40:51 +00:00
Pierre Lamot 788c23ba67 qml: refactor SliderBar as ProgressBar
qml slider native event handling is messing with the touch handlers
and the mouse area implementation don't work well with Qt6
2024-04-12 16:03:42 +00:00
Martin Storsjö f8a5243154 contrib: qt: Don't disable PCH when building Qt
This significantly speeds up the time to compile Qt.

0fec1bc300 looks like it intended
to enable PCH, but it didn't do anything to remove the "-no-pch"
argument that was added in 3377bb4f3b.
2024-04-12 11:17:10 +00:00
Steve Lhomme 848b0f08c1 contrib: zvbi: fix Android usage of pthread
- pthread_create is not detected properly with the NDK26.
- pthread_cancel is called but it's not supported by Android, it's probably dead code that is removed during linking
2024-04-12 08:53:43 +00:00
Tristan Matthews 5858d5c2fc contrib: rnnoise: re-enable on android
The "duplicated symbols in Opus" issue was fixed upstream.
2024-04-12 07:45:11 +00:00
Tristan Matthews a5142cfd4b contrib: rnnnoise: update to v0.1.1 2024-04-12 07:45:11 +00:00
Pierre Lamot e0ee001b9f qml: revert Connections syntax warning policy 2024-04-12 07:05:07 +00:00
Pierre Lamot 4ddf10e92b qml: use function syntax in Connections objects
using implicit signal handler is deprecated since Qt5.15
2024-04-12 07:05:07 +00:00
Pierre Lamot 9e6ef484e8 qml: don't connect to onEnabledChanged signals in Connections
Connection already have an `enabled` property so it is confusing
regarding which object is targeted.

with the `function onXXX()` syntax binding to this signal will fail
2024-04-12 07:05:07 +00:00
Fatih Uzunoglu 865a825dd7 contrib: qtvlcdeps: do not use entrypoint
It is not used and therefore not necessary.
2024-04-11 19:50:26 +00:00
Steve Lhomme b264a7f21d contrib: sqlite: fix compilation with NDK26
This is fixed in their repository but there's no release with it yet.
2024-04-11 18:23:44 +00:00
Alaric Senat baed3b02ec medialibrary: allow changing folder public state
This is the main mechanism that will be exposed to the user to
allow/disallow multiple media to be publicly exposed on the network by
VLC.
2024-04-11 13:19:17 +00:00
Alaric Senat 2bb616a50c medialibrary: media: expose an `is_public` accessor 2024-04-11 13:19:17 +00:00
Alaric Senat c4a3e9ceee medialibrary: expose the `publicOnly` query parameter
Allow medialibrary queries to process and list public media.

Public media are a new addition of the medialibrary 0.13 version. With
this, the users will have the opportunity to allow a subset of the
medialibrary to be exposed on network interfaces (notably the upnp
server and the HTTP remote control).

Community discussions around the subject can be found here:
https://code.videolan.org/videolan/vlc/-/merge_requests/269#note_274345
2024-04-11 13:19:17 +00:00
Fatih Uzunoglu 533ff6236d contrib: qtbase: do not build Qt Network 2024-04-11 09:25:32 +00:00
Fatih Uzunoglu 45af60663d contrib: qtdeclarative: disable network feature 2024-04-11 09:25:32 +00:00
Fatih Uzunoglu acedda6b6f contrib: qtvlcdeps: do not use network 2024-04-11 09:25:32 +00:00
Fatih Uzunoglu 8794f7badf qt: do not check for Qt6Network 2024-04-11 09:25:32 +00:00
Alaric Senat 79df34a5d3 medialibrary: bind wrapped `favoriteOnly`
This was forgotten in 9394e7eace.
2024-04-11 08:41:48 +00:00
Alaric Senat 78a6866481 medialibrary: fix a playlist mrl leak
The condition was flawed. `strdup_helper` allocation success made the
condition pass to the `else` statement, thus erasing the previously
allocated value and causing a leak.

This patch reworks the condition to properly succeed when the string
duplication is done.
2024-04-11 08:41:48 +00:00
Thomas Guillem 62fdc8ec2c android: catch one more exception in DynamicsProcessing
The following exception is happening on Samsung S23, Android 14 (even
if this method is not documented to throw exceptions).

04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591] JNI DETECTED ERROR IN APPLICATION: JNI CallIntMethod called with pending exception java.lang.UnsupportedOperationException: AudioEffect: invalid parameter operation
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at void android.media.audiofx.AudioEffect.checkStatus(int) (AudioEffect.java:1452)
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at void android.media.audiofx.DynamicsProcessing.setTwoFloat(int, int, float) (DynamicsProcessing.java:2150)
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at void android.media.audiofx.DynamicsProcessing.setInputGainbyChannel(int, float) (DynamicsProcessing.java:1790)
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at void android.media.audiofx.DynamicsProcessing.setInputGainAllChannelsTo(float) (DynamicsProcessing.java:1794)
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at int org.videolan.libvlc.MediaPlayer.setVolume(int) (MediaPlayer.java:-2)
04-07 12:19:34.914 27362 27362 F eolan.vlc.debug: java_vm_ext.cc:591]   at int org.videolan.vlc.media.PlayerController.setVolume(int) (PlayerController.kt:300)

Fixes vlc-android#3057
2024-04-11 08:19:37 +00:00
Claudio Cambra 2190d9d2f7 macosx: Update potfiles to respond to controlsbar folder rename
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 8fa7292a51 macosx: Rename "mainwindow" folder to more appropriate "controlsbar"
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 2432710464 macosx: Listen to float on top notification change in main video view controller
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra ef0149ada8 macosx: Constify notification window level names
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra bd6ad756ca macosx: Add callback to emit notification in VLCVideoOutputProvider whenever a window's float on top changes
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra e9af45e10e macosx: Update float on top button state when pressed
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 4e7cffa647 macosx: Make controls bar property in VLCMainVideoViewController in VLCMainVideoViewControlsBar
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra b7da44b94b macosx: Move float on top button handling to main video view controls bar
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra ce30883606 macosx: Adjust "float on top" icon in main video view
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 49565a2e31 macosx: Fix 0 status level windows handling
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 57daae9801 macosx: Remove all internal PIP handling in video windows, just toggle float on top config value when pressing button
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 46b3cf0040 macosx: Enter collection behaviour and activation mode stuff into setting window level
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 58650a2a2f macosx: Toggle app activation policy to allow window to join fullscreen spaces
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra f90c93406d macosx: Allow float on top windows to join full screen spaces
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00
Claudio Cambra 1580ba730c macosx: Create own method for setting window to float on top in vlcvideooutputprovider
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2024-04-11 07:40:56 +00:00