vlc.git
5 years agoMap Bink Audio and Video codecs
Jean-Baptiste Kempf [Thu, 9 Jan 2014 20:58:43 +0000 (21:58 +0100)]
Map Bink Audio and Video codecs

For some reasons, the video part does not work yet.

5 years agovlc_readdir: fix integer overflow on error
Rémi Denis-Courmont [Thu, 9 Jan 2014 19:04:36 +0000 (21:04 +0200)]
vlc_readdir: fix integer overflow on error

5 years agotest: check POTFILES.in in test suite
Rémi Denis-Courmont [Wed, 8 Jan 2014 17:40:16 +0000 (19:40 +0200)]
test: check POTFILES.in in test suite

(It is already tested in dist(check) but that is way too slow.)

5 years agoAdd Atrac3+ decoder mapping
Jean-Baptiste Kempf [Thu, 9 Jan 2014 18:54:06 +0000 (19:54 +0100)]
Add Atrac3+ decoder mapping

5 years agotwolame: fix build after revert
Ilkka Ollakka [Thu, 9 Jan 2014 08:56:34 +0000 (10:56 +0200)]
twolame: fix build after revert

5 years agofaad: set decode_audio at the end
Ilkka Ollakka [Wed, 2 Oct 2013 07:50:58 +0000 (10:50 +0300)]
faad: set decode_audio at the end

5 years agotwolame: set pf_encode at the end
Ilkka Ollakka [Thu, 9 Jan 2014 08:39:57 +0000 (10:39 +0200)]
twolame: set pf_encode at the end

5 years agoRevert "twolame: use FL32 as input"
Ilkka Ollakka [Thu, 9 Jan 2014 08:35:44 +0000 (10:35 +0200)]
Revert "twolame: use FL32 as input"

This reverts commit 2363d00e1131bc4b50e3a15a6593e824bee68dd7.

Twolame converts from FL32 to S16 internally anyway so no point
using this instead of converting inside vlc.

Pointed-out-by: Rémi Denis-Courmont
5 years agoopus: always sync i_buffer with i_nb_samples (fixes #10135)
Tristan Matthews [Thu, 9 Jan 2014 06:28:47 +0000 (01:28 -0500)]
opus: always sync i_buffer with i_nb_samples (fixes #10135)

Specifically, the crash at the end of playback was happening when end trim was
not being subtracted from i_buffer.

5 years agovorbis: fix format string
Tristan Matthews [Thu, 9 Jan 2014 05:25:55 +0000 (00:25 -0500)]
vorbis: fix format string

5 years agodemux: flac: use frame pts (fix #10328)
Francois Cartegnie [Wed, 8 Jan 2014 14:22:03 +0000 (15:22 +0100)]
demux: flac: use frame pts (fix #10328)

5 years agopacketizer: flac: generate PTS from frame info.
Francois Cartegnie [Wed, 8 Jan 2014 14:03:54 +0000 (15:03 +0100)]
packetizer: flac: generate PTS from frame info.

5 years agodemux: flac: use CLOCK_FREQ
Francois Cartegnie [Wed, 8 Jan 2014 14:22:32 +0000 (15:22 +0100)]
demux: flac: use CLOCK_FREQ

5 years agoQt: add a right-click action to save the playlist
Jean-Baptiste Kempf [Wed, 8 Jan 2014 13:37:39 +0000 (14:37 +0100)]
Qt: add a right-click action to save the playlist

5 years agoDistcheck: playlist.h is gone
Jean-Baptiste Kempf [Wed, 8 Jan 2014 11:58:24 +0000 (12:58 +0100)]
Distcheck: playlist.h is gone

5 years agotranscode: set pts on module open
Ilkka Ollakka [Tue, 17 Dec 2013 14:42:00 +0000 (16:42 +0200)]
transcode: set pts on module open

5 years agotwolame: use FL32 as input
Ilkka Ollakka [Mon, 6 Jan 2014 19:49:55 +0000 (21:49 +0200)]
twolame: use FL32 as input

as FL32 is used in filters/resamplers also, this hopefully
removes a need of one conversion.

5 years agotwolame: implement flushing on close
Ilkka Ollakka [Mon, 6 Jan 2014 18:15:37 +0000 (20:15 +0200)]
twolame: implement flushing on close

5 years agosrc: simplify and inline pl_Get()
Rémi Denis-Courmont [Sun, 5 Jan 2014 16:38:12 +0000 (18:38 +0200)]
src: simplify and inline pl_Get()

5 years agoplaylist: create instance only when needed
Rémi Denis-Courmont [Thu, 2 Jan 2014 21:36:35 +0000 (23:36 +0200)]
playlist: create instance only when needed

This avoids checking that the playlist exists over and over again. The
playlist always exists when an interface is running.

5 years agolib: add helper for playlist startup
Rémi Denis-Courmont [Tue, 7 Jan 2014 21:26:35 +0000 (23:26 +0200)]
lib: add helper for playlist startup

Also remove a useless and unsynchronized test.

5 years agolib: remove unneeded code
Rémi Denis-Courmont [Wed, 1 Jan 2014 17:25:51 +0000 (19:25 +0200)]
lib: remove unneeded code

5 years agosrc: helper for command line item handling
Rémi Denis-Courmont [Mon, 6 Jan 2014 08:23:43 +0000 (10:23 +0200)]
src: helper for command line item handling

5 years agointerface: create the playlist first and use it as parent
Rémi Denis-Courmont [Wed, 1 Jan 2014 17:08:21 +0000 (19:08 +0200)]
interface: create the playlist first and use it as parent

5 years agoplaylist: merge interface and playlist locks as one
Rémi Denis-Courmont [Mon, 6 Jan 2014 08:32:07 +0000 (10:32 +0200)]
playlist: merge interface and playlist locks as one

This restores symmetry in the playlist API, but most importantly, it
is necessary to fix some corner case races (in later commits).

5 years agosrc: move one declaration
Rémi Denis-Courmont [Mon, 6 Jan 2014 08:23:18 +0000 (10:23 +0200)]
src: move one declaration

5 years agowin32: move single instance back-end to separate interface
Rémi Denis-Courmont [Sun, 5 Jan 2014 17:43:42 +0000 (19:43 +0200)]
win32: move single instance back-end to separate interface

5 years agosrc: darwin/thread: do not create own condattr
David Fuhrmann [Mon, 6 Jan 2014 16:21:33 +0000 (17:21 +0100)]
src: darwin/thread: do not create own condattr

5 years agosrc: darwin/thread: reimplement monotonic clock for darwin
David Fuhrmann [Tue, 31 Dec 2013 10:41:55 +0000 (11:41 +0100)]
src: darwin/thread: reimplement monotonic clock for darwin

This is based on code which was silently removed in
0f9a94f2183fc6c6e9ce8b77eb497aab160cbbbd and
45c2bc0811cc2d9fe8e11448a05742d7ff6da1d8.

The patch solves timing issues if the user changes the system time, for
instance while playback.

Another timing issue was pointed out if vlc_cond_init_with_daytime is used.
This remains unfixed, and is documented in a Fixme.

close #10072

5 years agoauhal: fail in render callbacks if bytesToCopy is <= 0
David Fuhrmann [Tue, 31 Dec 2013 10:17:08 +0000 (11:17 +0100)]
auhal: fail in render callbacks if bytesToCopy is <= 0

This should not happen in the current implementation.

5 years agohttplive: Adjust conditions for playlist reloading
Heorhi Valakhanovich [Sun, 15 Dec 2013 22:28:34 +0000 (01:28 +0300)]
httplive: Adjust conditions for playlist reloading

Commit 7655d6c889d2425c1fd4615f7e2692df1a47470c changes HLS http
playlist reloading policy. But leaving only one fragment in buffer is
not enough. This patch ensures that less than three fragments in buffer
leads to playlist reloading. The overal result is more reliable http
streams.

Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
5 years agodemux: wav: stay within riff chunk boundaries (fix #10323)
Francois Cartegnie [Mon, 6 Jan 2014 22:43:59 +0000 (23:43 +0100)]
demux: wav: stay within riff chunk boundaries (fix #10323)

5 years agocodec: vorbis: birates are signed. (fix #10324)
Francois Cartegnie [Mon, 6 Jan 2014 20:08:51 +0000 (21:08 +0100)]
codec: vorbis: birates are signed. (fix #10324)

Negative being meaningless.

5 years agodemux: ogg: vorbis birates are signed.
Francois Cartegnie [Mon, 6 Jan 2014 20:07:36 +0000 (21:07 +0100)]
demux: ogg: vorbis birates are signed.

Negative being meaningless.

5 years agomux: ogg: add support for VP8 in OGG
Francois Cartegnie [Sun, 5 Jan 2014 00:50:50 +0000 (01:50 +0100)]
mux: ogg: add support for VP8 in OGG

5 years agodemux: ogg: add ogg/VP8 support
Francois Cartegnie [Fri, 3 Jan 2014 22:59:06 +0000 (23:59 +0100)]
demux: ogg: add ogg/VP8 support

5 years agodemux: ogg: split comments parsing from xiph unpack
Francois Cartegnie [Fri, 3 Jan 2014 22:57:04 +0000 (23:57 +0100)]
demux: ogg: split comments parsing from xiph unpack

5 years agosecuretransport: add missing error checking
David Fuhrmann [Sun, 5 Jan 2014 18:21:11 +0000 (19:21 +0100)]
securetransport: add missing error checking

5 years agomacosx: save frame position for fspanel (close #9958)
David Fuhrmann [Sun, 5 Jan 2014 18:19:05 +0000 (19:19 +0100)]
macosx: save frame position for fspanel (close #9958)

5 years agoQt4: specify function prototype, remove cast
Rémi Denis-Courmont [Sun, 5 Jan 2014 16:34:42 +0000 (18:34 +0200)]
Qt4: specify function prototype, remove cast

5 years agoncurses: pass interface thread pointer to pl_Get() directly
Rémi Denis-Courmont [Sun, 5 Jan 2014 16:33:59 +0000 (18:33 +0200)]
ncurses: pass interface thread pointer to pl_Get() directly

5 years agoaudioscrobbler: simplify pl_Get() usage
Rémi Denis-Courmont [Sun, 5 Jan 2014 16:33:32 +0000 (18:33 +0200)]
audioscrobbler: simplify pl_Get() usage

5 years agov4l2: fix frequency conversion from Hz (fixes #10309)
Rémi Denis-Courmont [Sun, 5 Jan 2014 13:51:09 +0000 (15:51 +0200)]
v4l2: fix frequency conversion from Hz (fixes #10309)

5 years agoLua: set playlist object explicitly in state
Rémi Denis-Courmont [Sun, 5 Jan 2014 11:39:30 +0000 (13:39 +0200)]
Lua: set playlist object explicitly in state

5 years agoLua: check vlclua_get_playlist_internal() for NULL
Rémi Denis-Courmont [Sun, 5 Jan 2014 11:30:54 +0000 (13:30 +0200)]
Lua: check vlclua_get_playlist_internal() for NULL

5 years agoLua: do not call luaopen_volume() twice for interfaces
Rémi Denis-Courmont [Sun, 5 Jan 2014 11:21:39 +0000 (13:21 +0200)]
Lua: do not call luaopen_volume() twice for interfaces

5 years agoCosmetic
Rémi Denis-Courmont [Sun, 5 Jan 2014 11:27:23 +0000 (13:27 +0200)]
Cosmetic

5 years agoLua: remove cargo cult check for the private data of the input thread
Rémi Denis-Courmont [Sun, 5 Jan 2014 11:34:12 +0000 (13:34 +0200)]
Lua: remove cargo cult check for the private data of the input thread

5 years agohotkeys: fix wall-paper toggling
Rémi Denis-Courmont [Sun, 5 Jan 2014 10:14:51 +0000 (12:14 +0200)]
hotkeys: fix wall-paper toggling

5 years agoqt4: update wall-paper mode toggling
Rémi Denis-Courmont [Sun, 5 Jan 2014 10:16:30 +0000 (12:16 +0200)]
qt4: update wall-paper mode toggling

5 years agoDirectDraw: remove wall-paper playlist hack
Rémi Denis-Courmont [Sun, 5 Jan 2014 10:17:54 +0000 (12:17 +0200)]
DirectDraw: remove wall-paper playlist hack

5 years agoDirect3D: remove wall-paper playlist hack
Rémi Denis-Courmont [Sun, 5 Jan 2014 10:17:16 +0000 (12:17 +0200)]
Direct3D: remove wall-paper playlist hack

This is now managed by the playlist and video output core.

5 years agoXCB: remove wall-paper mode legacy hacks
Rémi Denis-Courmont [Sat, 4 Jan 2014 22:07:41 +0000 (00:07 +0200)]
XCB: remove wall-paper mode legacy hacks

5 years agovout: add proper core-managed object variable for wall paper mode
Rémi Denis-Courmont [Sat, 4 Jan 2014 21:55:23 +0000 (23:55 +0200)]
vout: add proper core-managed object variable for wall paper mode

5 years agovout: pass enum for window state instead of boolean (refs #10302)
Rémi Denis-Courmont [Sat, 4 Jan 2014 21:51:24 +0000 (23:51 +0200)]
vout: pass enum for window state instead of boolean (refs #10302)

5 years agoQt4: fix fullscreen and video-on-top toggle across input or video reset
Rémi Denis-Courmont [Sat, 4 Jan 2014 21:08:12 +0000 (23:08 +0200)]
Qt4: fix fullscreen and video-on-top toggle across input or video reset

5 years agoQt4: refactor
Rémi Denis-Courmont [Sat, 4 Jan 2014 20:57:08 +0000 (22:57 +0200)]
Qt4: refactor

5 years agoQt4: improve macro expansion safety
Rémi Denis-Courmont [Sat, 4 Jan 2014 20:50:39 +0000 (22:50 +0200)]
Qt4: improve macro expansion safety

5 years agotranscode: handle acodec aliases properly
Ilkka Ollakka [Sat, 4 Jan 2014 13:09:47 +0000 (15:09 +0200)]
transcode: handle acodec aliases properly

Get correct fourcc for i_acodec instead creating fourcc directly from
user input.

Fixes #9755

5 years agodate_Decrement: change assert so it doesn't to funky stuff
Ilkka Ollakka [Wed, 11 Dec 2013 07:02:49 +0000 (09:02 +0200)]
date_Decrement: change assert so it doesn't to funky stuff

If we do date_Set and right after that date_Decrement that assert
seemed to behave differently in 64bit and 32bit architectures.

Ref #9022, #10101

5 years agoconfigure: fix check for libnsl
Rémi Denis-Courmont [Fri, 3 Jan 2014 21:48:08 +0000 (23:48 +0200)]
configure: fix check for libnsl

Pointed-out-by: Jon Tibble <meths@btinternet.com>
5 years agoContribs: dvdread, use the correct libdvdcss option
Jean-Baptiste Kempf [Fri, 3 Jan 2014 11:49:22 +0000 (12:49 +0100)]
Contribs: dvdread, use the correct libdvdcss option

5 years agovlc_atomic: fix compilation warnings with MSVC.
Felix Abecassis [Fri, 3 Jan 2014 11:46:05 +0000 (12:46 +0100)]
vlc_atomic: fix compilation warnings with MSVC.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agovlc_atomic: set the atomic types to be at least 32 bits wide with MSVC.
Felix Abecassis [Fri, 3 Jan 2014 11:46:04 +0000 (12:46 +0100)]
vlc_atomic: set the atomic types to be at least 32 bits wide with MSVC.

This change is required since some atomic operations of the
Interlocked API are only available for desktop apps.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agovlc_atomic: add missing include for MSVC.
Felix Abecassis [Fri, 3 Jan 2014 11:46:03 +0000 (12:46 +0100)]
vlc_atomic: add missing include for MSVC.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoopengl: comment texture recycling and document a possible bug.
Felix Abecassis [Fri, 3 Jan 2014 11:15:44 +0000 (12:15 +0100)]
opengl: comment texture recycling and document a possible bug.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agoopengl: allocate the texture size using the visible dimensions of the format.
Felix Abecassis [Fri, 3 Jan 2014 11:15:43 +0000 (12:15 +0100)]
opengl: allocate the texture size using the visible dimensions of the format.

Removes a green line bug at the bottom of some videos.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
5 years agomotion: use pl_CurrentItem()
Rémi Denis-Courmont [Thu, 2 Jan 2014 22:06:26 +0000 (00:06 +0200)]
motion: use pl_CurrentItem()

5 years agoaudioscrobbler: use pl_CurrentInput()
Rémi Denis-Courmont [Thu, 2 Jan 2014 22:06:11 +0000 (00:06 +0200)]
audioscrobbler: use pl_CurrentInput()

5 years agopodcast: fail safe if running in LibVLC (i.e. without playlist)
Rémi Denis-Courmont [Thu, 2 Jan 2014 22:01:15 +0000 (00:01 +0200)]
podcast: fail safe if running in LibVLC (i.e. without playlist)

5 years agoatmo: remove invalid input state callback code
Rémi Denis-Courmont [Thu, 2 Jan 2014 22:11:31 +0000 (00:11 +0200)]
atmo: remove invalid input state callback code

There is much suspicious code left. This plugin needs to be fixed if it
is still used.

5 years agostr_format_meta: fix reference counting
Rémi Denis-Courmont [Thu, 2 Jan 2014 21:35:02 +0000 (23:35 +0200)]
str_format_meta: fix reference counting

5 years agodtv: fix DVB-T2 tuning
Rémi Denis-Courmont [Thu, 2 Jan 2014 17:33:06 +0000 (19:33 +0200)]
dtv: fix DVB-T2 tuning

5 years agoRemove the deprecated vlc_atomic_t type.
Felix Abecassis [Thu, 2 Jan 2014 10:43:02 +0000 (11:43 +0100)]
Remove the deprecated vlc_atomic_t type.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
5 years agovdpau/adjust: cut&paste error
Rémi Denis-Courmont [Thu, 2 Jan 2014 11:34:44 +0000 (13:34 +0200)]
vdpau/adjust: cut&paste error

5 years agotranscode: fix memory leak
Rémi Duraffort [Wed, 1 Jan 2014 19:33:04 +0000 (20:33 +0100)]
transcode: fix memory leak

5 years agots: fix potential use of uninitialized variable
Rémi Duraffort [Wed, 1 Jan 2014 18:08:55 +0000 (19:08 +0100)]
ts: fix potential use of uninitialized variable

5 years agots: do not call stream_Size two times
Rémi Duraffort [Wed, 1 Jan 2014 18:06:47 +0000 (19:06 +0100)]
ts: do not call stream_Size two times

5 years agovod: reduce complexity and please static analyzers
Rémi Duraffort [Wed, 1 Jan 2014 17:53:35 +0000 (18:53 +0100)]
vod: reduce complexity and please static analyzers

5 years agoQt4: fix sizeof mismatch
Rémi Duraffort [Wed, 1 Jan 2014 17:53:16 +0000 (18:53 +0100)]
Qt4: fix sizeof mismatch

5 years agoxdg: fix infinite loop if the file is invalid
Rémi Duraffort [Tue, 31 Dec 2013 17:38:38 +0000 (18:38 +0100)]
xdg: fix infinite loop if the file is invalid

5 years agovlm: reduce deletion complexity and help analyzers
Rémi Duraffort [Tue, 31 Dec 2013 15:02:27 +0000 (16:02 +0100)]
vlm: reduce deletion complexity and help analyzers

5 years agochorus: remove wrong (and uneeded) dealocations
Rémi Duraffort [Tue, 31 Dec 2013 14:52:43 +0000 (15:52 +0100)]
chorus: remove wrong (and uneeded) dealocations

5 years agoRemove faulty return when vobsub doesn't define a size.
Denis Charmet [Wed, 1 Jan 2014 21:35:36 +0000 (22:35 +0100)]
Remove faulty return when vobsub doesn't define a size.

Close #10111

5 years agoinput_CreateFilename: take explicit input thread pointer
Rémi Denis-Courmont [Wed, 1 Jan 2014 18:31:26 +0000 (20:31 +0200)]
input_CreateFilename: take explicit input thread pointer

This should fix meta-data expansion in LibVLC (i.e. when recording).

5 years agostr_format_meta: take input thread pointer rather than playlist
Rémi Denis-Courmont [Wed, 1 Jan 2014 18:25:52 +0000 (20:25 +0200)]
str_format_meta: take input thread pointer rather than playlist

5 years agostr_format_meta: clean up
Rémi Denis-Courmont [Wed, 1 Jan 2014 18:17:32 +0000 (20:17 +0200)]
str_format_meta: clean up

5 years agodbus: use pl_CurrentInput()
Rémi Denis-Courmont [Wed, 1 Jan 2014 17:19:26 +0000 (19:19 +0200)]
dbus: use pl_CurrentInput()

5 years agopl_CurrentInput: more specific prototype
Rémi Denis-Courmont [Wed, 1 Jan 2014 17:19:13 +0000 (19:19 +0200)]
pl_CurrentInput: more specific prototype

5 years agointf-add: small simplification
Rémi Denis-Courmont [Wed, 1 Jan 2014 16:07:45 +0000 (18:07 +0200)]
intf-add: small simplification

5 years agolibvlc: look "syslog" value only once, simplify
Rémi Denis-Courmont [Wed, 1 Jan 2014 16:55:49 +0000 (18:55 +0200)]
libvlc: look "syslog" value only once, simplify

5 years agolibvlc: look the value of intf up only once when used
Rémi Denis-Courmont [Wed, 1 Jan 2014 16:52:01 +0000 (18:52 +0200)]
libvlc: look the value of intf up only once when used

5 years agolibvlc: remove "evil" daemon global variable and clean up
Rémi Denis-Courmont [Wed, 1 Jan 2014 16:38:19 +0000 (18:38 +0200)]
libvlc: remove "evil" daemon global variable and clean up

(The unlikely corner case of ENOMEM remains unhandled/unfixed.)

5 years agoRemove stray comment
Rémi Denis-Courmont [Wed, 1 Jan 2014 15:57:26 +0000 (17:57 +0200)]
Remove stray comment

5 years agoHappy New Year 2014!
Jean-Baptiste Kempf [Wed, 1 Jan 2014 10:31:17 +0000 (11:31 +0100)]
Happy New Year 2014!

5 years agoplaylist: remove playlist_PreparseEnqueue() (refs #5460)
Rémi Denis-Courmont [Tue, 31 Dec 2013 18:41:36 +0000 (20:41 +0200)]
playlist: remove playlist_PreparseEnqueue() (refs #5460)

5 years agoplaylist: remove playlist_AskForArtEnqueue() (refs #5460)
Rémi Denis-Courmont [Tue, 31 Dec 2013 18:36:04 +0000 (20:36 +0200)]
playlist: remove playlist_AskForArtEnqueue() (refs #5460)

5 years agolib: remove playlist dependency on media parsing (fixes #5460)
Rémi Denis-Courmont [Tue, 31 Dec 2013 18:31:52 +0000 (20:31 +0200)]
lib: remove playlist dependency on media parsing (fixes #5460)

5 years agoplaylist: add playlist-independent functions for meta data handling
Rémi Denis-Courmont [Tue, 31 Dec 2013 18:25:21 +0000 (20:25 +0200)]
playlist: add playlist-independent functions for meta data handling

This really only depends on the input item(s) and the core.

5 years agolibvlc: remove stray debug message
Rémi Denis-Courmont [Tue, 31 Dec 2013 18:19:00 +0000 (20:19 +0200)]
libvlc: remove stray debug message