Commit Graph

50 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
de4e0e33b1 rdp: use <stdckdint.h> 2024-02-20 19:34:53 +00:00
Steve Lhomme
3f613a85f5 vlc_threads: move poll() definitions in a separate header
It's using a compat version on Windows/Android/OS2 which is not available
to external modules.

This new header can't be used directly from external modules on Windows.
This makes vlc_threads.h usable from external modules on Windows.
2024-01-30 09:39:00 +00:00
Steve Lhomme
8c98fc91e0 access/rdp: fail if gdi_init() fails 2023-10-04 13:21:43 +00:00
Steve Lhomme
1674af4837 access/rdp: map the format to known chromas
According to the color definitions in [1]. And the naming matches the memory
order:

> The format naming scheme is based on byte position in memory.

Given it's a Windows protocol the 15/16-bit variants are assumed to be
Little-Endian.

The pixel formats should be the one we set in postConnectHandler,
but we map all of them just in case.

[1} b608be19e4/include/freerdp/codec/color.h
2023-10-04 13:21:43 +00:00
Steve Lhomme
2f1524d520 rdp: use RGB24 without a mask
This corresponds to the default RGB24M mask.
2023-09-24 19:57:38 +00:00
Steve Lhomme
0127ad54f9 vlc_fourcc: rename VLC_CODEC_RGB24 to VLC_CODEC_RGB24M
To signify it uses a mask, and to leave room for a real VLC_CODEC_RGB24 without
a mask.
2023-09-24 19:57:38 +00:00
Alexandre Janniaux
e9c0b18dd4 access: rdp: add missing semicolon
Missing from commit 4be29e3859.
2023-08-26 18:52:06 +00:00
Steve Lhomme
4be29e3859 access/rdp: use video_format_Setup() to initialize the format 2023-08-23 09:04:19 +00:00
Steve Lhomme
55eba1ae2e modules: include vlc_threads.h when using vlc_savecancel() 2023-04-27 19:44:35 +00:00
Juliane de Sartiges
293904e4e8 freerdp: protect against overflows when copying frames 2022-07-30 09:00:46 +00:00
Juliane de Sartiges
95e7bba610 freerdp: update to freerdp2 api 2022-07-30 09:00:46 +00:00
Steve Lhomme
36017f9c3a modules: add a fancy name to internal threads 2022-05-18 07:52:09 +02:00
Steve Lhomme
b469857dec vlc_threads: remove the thread priority when creating a thread
It is not used in POSIX systems. On other system it probably don't make a
difference anymore, only Windows has actual useful values for
VLC_THREAD_PRIORITY_XXX. The synchronization is more important than having some
threads called more often than others.
2022-04-27 08:16:28 +00:00
Lyndon Brown
6f68f89498 plugins: purge use of set_category()
see e967f81f6a.

note, this does **not** affect cat-based module selection items
(of which there are just three in use by the core), since that
mechanism uses subcats not cats.
2021-12-20 09:45:01 +00:00
Blake Haydon
8045a6cc9a Replace connexion with connection 2021-07-15 19:39:34 +00:00
Romain Vimont
3716a7da5b config: remove remaining "advanced" flags
The config "advanced" flag was unused and has been removed by
6a7a137f7b.

It has been removed from many add_*() macros, but not all. Remove it
from the remaining macros.
2021-06-06 08:42:50 +00:00
Lyndon Brown
d75459a35b remove unnecessary option longtext
where identical to shorttext, or near enough.

bad because:
 - wastes resources.
 - useless tooltips in prefs GUI (poor UX) - tooltip longtext should add
   something of value.
 - useless repetition of text in certain help output.

in some cases they differed only in full-stop, creating unnecessary extra
burden on translators.
2021-05-12 05:44:11 +00:00
Rémi Denis-Courmont
0b6f8e5c7c Check for <poll.h> explicitly 2020-06-08 16:50:39 +03:00
Rémi Denis-Courmont
cc95ecd3bc rdp: use a local variable 2020-02-09 18:26:40 +02:00
Simon Latapie
cee9f5692b access: rdp: fix URI parsing
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2019-03-28 12:49:30 +01:00
Hugo Beauzée-Luyssen
6947ce3065 rdp: Remove unused variable 2018-10-15 15:46:06 +02:00
Steve Lhomme
a58b739d06 core: use vlc_tick_t for DEMUX_GET_LENGTH officially 2018-09-20 10:07:07 +02:00
Steve Lhomme
07666913ef core: use vlc_tick_t for DEMUX_GET_TIME officially 2018-09-20 10:05:34 +02:00
Steve Lhomme
26fef56c52 core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t 2018-07-06 10:48:19 +02:00
Steve Lhomme
5ef6d13736 modules: the "live-caching" is always translated to a vlc_tick_t 2018-07-06 10:03:49 +02:00
Steve Lhomme
b4dfbc6283 rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
2018-06-22 13:32:10 +02:00
Steve Lhomme
c2eb32c9e1 rename mwait() to vlc_tick_wait()
The lua "mwait" remains the same.
2018-06-22 13:29:00 +02:00
Steve Lhomme
ff56c92a5e rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
2018-06-22 13:19:24 +02:00
Steve Lhomme
04db84cd9c modules: replace use of 1000000 on time values by CLOCK_FREQ
Modified-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-05-04 11:29:09 +03:00
Romain Vimont
ff2901aff3 core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.

This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.

The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.

See #18033

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-30 14:20:50 +02:00
Rémi Denis-Courmont
776811e9f2 config: remove advanced from add_password() 2018-04-24 21:36:45 +03:00
Rémi Denis-Courmont
66b9878782 access: fold access_demux capability 2018-03-31 18:01:14 +03:00
Rémi Denis-Courmont
eb17184434 access_demux: check that ES output is non-NULL
A combined access-demux cannot be instantiated without an ES output.
This checks that the ES output is present, avoiding crashes for
instance with vlc_stream_NewURL().
2018-03-29 18:22:38 +03:00
Rémi Denis-Courmont
8a0113766c rdp: prepare for void *p_sys 2017-12-03 17:57:33 +02:00
Thomas Guillem
cf4676c1e8 core: rename vlc_*alloc to vlc_obj_*alloc
In order to avoid confusion with future vlc_alloc.
2017-11-11 17:20:34 +01:00
Rémi Denis-Courmont
c2c02e2876 es_out: add type-safe es_out_SetPCR() helper 2017-07-30 20:43:39 +03:00
Rémi Denis-Courmont
740dd861a4 access: allocate p_sys vlc_malloc/vlc_calloc 2017-06-19 22:48:08 +03:00
Rémi Denis-Courmont
c0addfa8df rdp: remove redundant casts 2017-04-19 20:46:56 +03:00
Sebastian Ramacher
ad6c3b6ae4 Fix spelling of "instantiation"
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-01-30 18:41:36 +01:00
Vinson Lee
fa5081cc91 rdp: Fix build with FreeRDP 2.0.0.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-12-01 13:28:11 +01:00
Rémi Denis-Courmont
d7a88fe038 url: remove vlc_UrlParse() option parameter
That parameter assumed that the query was part of the path. However it
is not, which leads to invalid host name, and eventually failure when
the path is missing. In practice, passing any value other than '?' as
separator would not work properly.

Remaining vlc_UrlParse() call sites without the option separator do not
support query at the protocol level anyway, so they are unaffected by the
change.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2015-08-27 21:35:34 +03:00
Jean-Baptiste Kempf
88f858e9df Fix Authorship 2015-06-10 21:25:18 +02:00
Jean-Baptiste Kempf
0699fc7f17 Consistent strings to avoid duplications 2015-03-13 16:01:17 +01:00
Vinson Lee
5c07f87a77 rdp: Support FreeRDP-1.2.0-beta1-android9
Fix build errors.

  CC       access/librdp_plugin_la-rdp.lo
access/rdp.c: In function ‘Open’:
access/rdp.c:431:5: error: implicit declaration of function ‘freerdp_channels_global_init’ [-Werror=implicit-function-declaration]
     freerdp_channels_global_init();
     ^
access/rdp.c: In function ‘Close’:
access/rdp.c:507:5: error: implicit declaration of function ‘freerdp_channels_global_uninit’ [-Werror=implicit-function-declaration]
     freerdp_channels_global_uninit();
     ^

freerdp channels global functions were removed from FreeRDP repository
in commit 2a82684521dc8b23ae92e284e866227e5194a7bb.

commit 2a82684521dc8b23ae92e284e866227e5194a7bb
Author: Marc-André Moreau <marcandre.moreau@gmail.com>
Date:   Wed Jun 11 16:27:31 2014 -0400

    channels: cleanup unused freerdp channels global functions

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2015-02-20 15:01:41 +01:00
Paweł Stankowski
b2cdcba9bf Support for newest freerdp snapshot
Support for 24bpp was removed from freerdp repository in commit
02c1bf14ce1f3ad2199a349066548977916d9c06.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2014-11-19 14:03:34 +01:00
Rémi Denis-Courmont
299de9d959 rdp: drop bogus non-zero priority
This plugin does not access local files.
2014-09-22 21:17:09 +03:00
Jean-Baptiste Kempf
2b288c19b0 RDP: fix warning 2014-08-17 08:20:29 +02:00
Jean-Baptiste Kempf
14c90980a0 FreeRDP: support 1.1.0-beta2 API
Close #10832
2014-03-04 20:37:25 +01:00
Francois Cartegnie
f1a9cf1675 access: rdp: relicence.
Relicencing by author as it is still not altered.
2013-03-28 15:10:17 +01:00
Francois Cartegnie
e9074e229a access: add Remote Desktop viewer module 2013-03-26 12:11:22 +01:00