Steve Lhomme
317f1f9569
modules: optimize string maximum size checks
No need to go through all the chars when we can test the the maximum size we
want to reach before deciding it's too much with strnlen().
4 years ago
Steve Lhomme
36017f9c3a
modules: add a fancy name to internal threads
4 years ago
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.
4 years ago
Lyndon Brown
e1194a5f29
Switch various user facing URLs to HTTPS
Fixes #26687 .
4 years ago
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.
7 years ago
Rémi Denis-Courmont
dd20ace531
Rename VLC_EBADVAR to VLC_EINVAL
5 years ago
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.
5 years ago
Rémi Denis-Courmont
5bfde5eb6d
audioscrobbler: use semaphore instead of cancellation
6 years ago
Marvin Scholz
3f09c4134d
audioscrobbler: use new md5 API
6 years ago
Rémi Denis-Courmont
0474c75182
audioscrobbler: use break rather than goto
(where applicable)
6 years ago
Rémi Denis-Courmont
a18c4d6570
thread: remove vlc_cond_destroy()
7 years ago
Rémi Denis-Courmont
a3226cf890
thread: remove vlc_mutex_destroy()
7 years ago
Rémi Denis-Courmont
f11c730d85
audioscrobbler: fix error code
Empty string is invalid value, not missing object variable...
7 years ago
Victorien Le Couviour--Tuffet
e5dfc67e0c
audioscrobbler: use new playlist / player
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Rémi Denis-Courmont
d55765b605
input: introduce input_Hold() and input_Release()
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
8 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
8 years ago
Thomas Guillem
034a3f75a2
core: move playlist to playlist_legacy
To make room for the new playlist.
This playlist_legacy will be removed once all modules are using the new
playlist.
8 years ago
Rémi Denis-Courmont
af740a6800
audioscrobbler: use vlc_tls functions
8 years ago
Rémi Denis-Courmont
e7a06f987f
audioscrobbler: use vlc_memstream
8 years ago
Steve Lhomme
3556bcd09b
modules: convert to seconds using SEC_FROM_VLC_TICK()
8 years ago
Steve Lhomme
6b86c95bcf
audioscrobbler: init the amount of time to wait to VLC_TICK_INVALID
So we don't use it when not set
8 years ago
Steve Lhomme
266840ba61
audioscrobbler: played_time is not an vlc_tick_t
convert to seconds using SEC_FROM_VLC_TICK()
8 years ago
Steve Lhomme
0223136621
modules: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros
8 years ago
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
8 years ago
Steve Lhomme
c2eb32c9e1
rename mwait() to vlc_tick_wait()
The lua "mwait" remains the same.
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Steve Lhomme
424c62c391
audioscrobbler: played_time is not an mtime_t
convert to seconds using mtime_to_sec()
8 years ago
Pierre Lamot
e7383792e7
audioscrobbler: fix url parsing in handshake
vlc_UrlParse expects the scheme to be present
fixes : #19415 #19916
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
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>
8 years ago
Rémi Denis-Courmont
776811e9f2
config: remove advanced from add_password()
8 years ago
Filip Roséen
e4fbdcebeb
stream: rename vlc_stream_NewMRL to vlc_stream_NewURL
The function does not open MRLs, as correctly described in its
documentation, as such it is rather unfortunate that its name uses MRL
instead of URL (especially given that it cannot handle MRLs).
These changes are simply renaming all occurrences of the function, so
that the behavior of the function is properly reflected by its name.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Rémi Denis-Courmont
312d198438
stream: stream_ -> vlc_stream_
10 years ago
Thomas Guillem
183d5cda47
dialog: use new API
11 years ago
Rémi Denis-Courmont
9502539d89
audioscrobbler: fix request syntax
User-Agent and CRLF were invalid. Also use standard capitalization.
11 years ago
Hugo Beauzée-Luyssen
1de948c790
audioscrobbler: Don't mark a used variable unused
11 years ago
Hugo Beauzée-Luyssen
0875ed64ed
audioscrobbler: Fix socket leaks on error
11 years ago
Hugo Beauzée-Luyssen
05e2ddbcc1
audioscrobbler: Remove useless allocations
11 years ago
Rémi Denis-Courmont
6f15ed5213
Namespace/rename vlc URI decode/encode functions
11 years ago
Jonas Lundqvist
2e4030a281
audioscrobbler: check the submission URLs after handshake
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Jonas Lundqvist
f016bce31b
audioscrobbler: implement Now Playing feature
Submission of the currently playing song will show up on last.fm as
"Now Playing".
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Jonas Lundqvist
d7dcada304
audioscrobbler: remove dead code
Remove the old (unused) code related to the "Now Playing" feature.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
Jonas Lundqvist
15b848dde0
audioscrobbler: update protocol documentation URLs
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
11 years ago
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>
11 years ago
Rémi Denis-Courmont
c63fb384e7
audioscrobbler: fix stream error handling
11 years ago
Rémi Denis-Courmont
4b8e7b833b
audioscrobbler: fix condition variable usage
Wait for the end of the pacing interval, then wait for the next song
(if it did not start in the mean time).
11 years ago
Rémi Denis-Courmont
217fc59faa
Remove no longer used net_Printf() argument
11 years ago
Rémi Denis-Courmont
c17d35d425
audioscrobbler: call recv() and document some existing bugs
With waitall set to false, net_Read() is identical to recv()
outside the input thread. This avoids allocating a bogus waitpipe.
11 years ago
Rémi Denis-Courmont
56220f8612
vlc_plugin: fix non-LGPL plugins meta infos
12 years ago
Rémi Denis-Courmont
a39f80a677
audioscrobbler: keep track of active input object
Fix callback leak.
12 years ago
Rémi Denis-Courmont
5adb3308b8
Remove vlc_input.h from vlc_playlist.h
12 years ago