vlc.git
6 years agoWin32: better uploading messages for crashes
Jean-Baptiste Kempf [Tue, 4 Dec 2012 23:49:46 +0000 (00:49 +0100)]
Win32: better uploading messages for crashes

6 years agoaudiotrack: enable volume support
Edward Wang [Fri, 23 Nov 2012 04:37:55 +0000 (23:37 -0500)]
audiotrack: enable volume support

Signed-off-by: Rafaël Carré <funman@videolan.org>
6 years agoRationalize error code values
Rémi Denis-Courmont [Tue, 4 Dec 2012 21:17:48 +0000 (23:17 +0200)]
Rationalize error code values

VLC_GENERIC was particularly bad for RISC processors.

6 years agommdevice: simplify session management and prepare to change device
Rémi Denis-Courmont [Tue, 4 Dec 2012 20:54:09 +0000 (22:54 +0200)]
mmdevice: simplify session management and prepare to change device

Actual support for changing device requires (yet another) addition to
the audio_output_t callbacks set, I think.

6 years agommdevice: simplify volume & mute handling
Rémi Denis-Courmont [Tue, 4 Dec 2012 20:09:52 +0000 (22:09 +0200)]
mmdevice: simplify volume & mute handling

Apparently, there is no need for COM to do that.

6 years agowasapi: fixes and simplifications
Rémi Denis-Courmont [Tue, 4 Dec 2012 20:04:22 +0000 (22:04 +0200)]
wasapi: fixes and simplifications

6 years agoShout: remove tabs in sourcecode
Jean-Baptiste Kempf [Tue, 4 Dec 2012 18:08:47 +0000 (19:08 +0100)]
Shout: remove tabs in sourcecode

6 years agoendian: fix typo
Rémi Denis-Courmont [Tue, 4 Dec 2012 16:41:05 +0000 (18:41 +0200)]
endian: fix typo

6 years agoContribs: update sha512 for regex
Jean-Baptiste Kempf [Tue, 4 Dec 2012 15:38:46 +0000 (16:38 +0100)]
Contribs: update sha512 for regex

6 years agoRevert "Correctly detect alac in mp4 properties"
Jean-Baptiste Kempf [Tue, 4 Dec 2012 15:16:22 +0000 (16:16 +0100)]
Revert "Correctly detect alac in mp4 properties"

This reverts commit 7f807d9bb7cb08f1401d5cbec472338ed1d38157.

6 years agoskins2: adapt to latest change in playlist (activity variable)
Erwan Tulou [Tue, 4 Dec 2012 14:59:41 +0000 (15:59 +0100)]
skins2: adapt to latest change in playlist (activity variable)

It fixes skins2 crashing when an input is started.

6 years agoAdd MKS extensions for subtitles
Jean-Baptiste Kempf [Tue, 4 Dec 2012 13:50:53 +0000 (14:50 +0100)]
Add MKS extensions for subtitles

Ref #7842

6 years agocontrib: force HAVE_NEON only on ARMv7
Edward Wang [Wed, 21 Nov 2012 23:11:25 +0000 (23:11 +0000)]
contrib: force HAVE_NEON only on ARMv7

Since NO_NEON is not used anymore, leaving it undefined on ARMv6 will result in HAVE_NEON showing up, resulting in crashes.

ARMv7 Android builds are now built to tegra2 with a special dynamic NEON loader for libav.

Signed-off-by: Konstantin Pavlov <thresh@videolan.org>
6 years agoContribs: mad: fix build on android mips.
Konstantin Pavlov [Sun, 2 Dec 2012 10:02:04 +0000 (14:02 +0400)]
Contribs: mad: fix build on android mips.

Patch taken from Gentoo portage.
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/libmad/files/libmad-0.15.1b-gcc44-mips-h-constraint-removal.patch?revision=1.1

6 years agoContribs: fix postproc build on mips.
Konstantin Pavlov [Tue, 4 Dec 2012 13:04:36 +0000 (17:04 +0400)]
Contribs: fix postproc build on mips.

6 years agocontrib: Allow libav build on MIPS
Edward Wang [Sun, 2 Dec 2012 13:39:29 +0000 (13:39 +0000)]
contrib: Allow libav build on MIPS

Signed-off-by: Konstantin Pavlov <thresh@videolan.org>
6 years agoMP4: check more i_timescale values to avoid Division by Zero
Jean-Baptiste Kempf [Tue, 4 Dec 2012 11:26:21 +0000 (12:26 +0100)]
MP4: check more i_timescale values to avoid Division by Zero

Ref #7838

6 years agommdevice: fix thread initialization and cleanup
Rémi Denis-Courmont [Mon, 3 Dec 2012 17:54:19 +0000 (19:54 +0200)]
mmdevice: fix thread initialization and cleanup

6 years agoRewrite inhibit.c as an "inhibit" interface
Rafaël Carré [Fri, 30 Nov 2012 18:20:39 +0000 (19:20 +0100)]
Rewrite inhibit.c as an "inhibit" interface

Remove libvlc hack, and fixes missing input state changes

6 years agowasapi: split MMDevice and session code from output
Rémi Denis-Courmont [Sun, 2 Dec 2012 20:57:07 +0000 (22:57 +0200)]
wasapi: split MMDevice and session code from output

- Run the volume/mute handling on the COM thread,
  removes remaining volume hacks.
- Spawn session manager from device rather than client (fixes #7809)
- Insulate session management from output API (refs #7394)

6 years agoAdd V264 FourCC
Jean-Baptiste Kempf [Sun, 2 Dec 2012 10:04:07 +0000 (11:04 +0100)]
Add V264 FourCC

6 years agoRemove unused VLC_EEXIT* error codes
Rémi Denis-Courmont [Sun, 2 Dec 2012 08:20:40 +0000 (10:20 +0200)]
Remove unused VLC_EEXIT* error codes

6 years agolibvlc: call exit() if command line help was requested
Rémi Denis-Courmont [Sun, 2 Dec 2012 08:17:51 +0000 (10:17 +0200)]
libvlc: call exit() if command line help was requested

A library should not call exit(), but I do not see any easy way around
it: if libvlc_new() returns NULL on error so real errors cannot be
distinguished from --help stuff. Also --daemon already calls exit()
(through daemon()).

This introduces an O(1) memory leak when calling --help. It could be
fixed by merging libvlc_InternalCreate() and libvlc_InternalInit().

6 years agolibvlc: return a real error if daemonizing failed
Rémi Denis-Courmont [Sun, 2 Dec 2012 08:15:10 +0000 (10:15 +0200)]
libvlc: return a real error if daemonizing failed

(If daemonizing succeeded, daemon() will call exit(0) internally.)

6 years agolibvlc: better error code if no modules are found
Rémi Denis-Courmont [Sun, 2 Dec 2012 08:14:38 +0000 (10:14 +0200)]
libvlc: better error code if no modules are found

6 years agoDirectSound: fix bytes per frame count (fixes #7835)
Rémi Denis-Courmont [Sun, 2 Dec 2012 07:57:39 +0000 (09:57 +0200)]
DirectSound: fix bytes per frame count (fixes #7835)

6 years agovlc: return non-zero exit code if starting failed
Rémi Denis-Courmont [Fri, 30 Nov 2012 18:29:43 +0000 (20:29 +0200)]
vlc: return non-zero exit code if starting failed

6 years agoinhibit: add separate flags for audio and video
Rémi Denis-Courmont [Fri, 30 Nov 2012 17:13:24 +0000 (19:13 +0200)]
inhibit: add separate flags for audio and video

6 years agoinhibit: remove the window ID
Rémi Denis-Courmont [Fri, 30 Nov 2012 17:05:23 +0000 (19:05 +0200)]
inhibit: remove the window ID

This seemed like a good idea to support xdg-screensaver. But it really
goes in the way.

6 years agoxdg: use timer based reset instead of window ID
Rémi Denis-Courmont [Fri, 30 Nov 2012 17:02:33 +0000 (19:02 +0200)]
xdg: use timer based reset instead of window ID

This is required to remove the dependency on the window provider.

6 years agoRevert "swscale: pass/calculate sar-info, should fix #7437"
Rémi Denis-Courmont [Thu, 29 Nov 2012 22:04:33 +0000 (00:04 +0200)]
Revert "swscale: pass/calculate sar-info, should fix #7437"

This reverts commit 0330378c55b8b940f6de82adb59cc32c5b3da12a.
This reverts commit 0f233f4980d0440b8357de629fee7fa0741c27b3.

Init() already initializes the aspect ratio, and does it correctly
(unlike these two commits) with video_format_ScaleCropAr().

6 years agowasapi: fix channel order mask
Rémi Denis-Courmont [Thu, 29 Nov 2012 21:20:43 +0000 (23:20 +0200)]
wasapi: fix channel order mask

6 years agoalsa: keep only useful values, not whole audio format
Rémi Denis-Courmont [Thu, 29 Nov 2012 21:07:40 +0000 (23:07 +0200)]
alsa: keep only useful values, not whole audio format

6 years agoinput: create an aout if UI wants to configure audio (fixes #7810)
Rémi Denis-Courmont [Thu, 29 Nov 2012 20:30:41 +0000 (22:30 +0200)]
input: create an aout if UI wants to configure audio (fixes #7810)

6 years agodump: output to access output rather than file (fixes #1873)
Rémi Denis-Courmont [Thu, 29 Nov 2012 15:42:36 +0000 (17:42 +0200)]
dump: output to access output rather than file (fixes #1873)

The default output plugin is file for obvious backward compatibility
reasons. Note that using anything but the file output really only makes
sense for MPEG-TS streams.

6 years agofile out: print I/O error to log and fix error handling
Rémi Denis-Courmont [Thu, 29 Nov 2012 15:37:37 +0000 (17:37 +0200)]
file out: print I/O error to log and fix error handling

6 years agodump: clean up and simplify
Rémi Denis-Courmont [Tue, 27 Nov 2012 21:56:34 +0000 (23:56 +0200)]
dump: clean up and simplify

6 years agoAVIO output: fix sout syntax
Rafaël Carré [Thu, 29 Nov 2012 11:33:26 +0000 (12:33 +0100)]
AVIO output: fix sout syntax

Remove duplicate option

6 years agoRemove pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 18:21:37 +0000 (20:21 +0200)]
Remove pf_run

6 years agoaudioscrobbler: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 18:18:34 +0000 (20:18 +0200)]
audioscrobbler: do not use pf_run

6 years agoncurses: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 18:12:54 +0000 (20:12 +0200)]
ncurses: do not use pf_run

6 years agodbus: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 18:06:49 +0000 (20:06 +0200)]
dbus: do not use pf_run

6 years agomotion: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 18:02:30 +0000 (20:02 +0200)]
motion: do not use pf_run

6 years agontservice: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:56:36 +0000 (19:56 +0200)]
ntservice: do not use pf_run

6 years agoLIRC: keep same pollfd
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:50:01 +0000 (19:50 +0200)]
LIRC: keep same pollfd

There is no need to reinitialize the structure.

6 years agoLIRC: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:49:31 +0000 (19:49 +0200)]
LIRC: do not use pf_run

6 years agoOld RC: do not use pf_run
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:43:14 +0000 (19:43 +0200)]
Old RC: do not use pf_run

6 years agoaout: cosmetic fix
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:29:45 +0000 (19:29 +0200)]
aout: cosmetic fix

6 years agoDirectX: use parent object instead of -incorrectly- pl_Get()
Rémi Denis-Courmont [Tue, 27 Nov 2012 17:27:16 +0000 (19:27 +0200)]
DirectX: use parent object instead of -incorrectly- pl_Get()

6 years agoDBus: remove from list of "control" interfaces
Rémi Denis-Courmont [Mon, 26 Nov 2012 22:19:15 +0000 (00:19 +0200)]
DBus: remove from list of "control" interfaces

The D-Bus interface is always started automatically. It should NOT be
added to --control.

6 years agoplaylist: move SD loading/unloading to playlist code...
Rémi Denis-Courmont [Mon, 26 Nov 2012 22:01:11 +0000 (00:01 +0200)]
playlist: move SD loading/unloading to playlist code...

...instead of libvlc.c. Note that this only concerns the playlist SD.
The LibVLC SD were always dealt with separately.

6 years agoplaylist: create the playlist when needed (refs #5460)
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:53:36 +0000 (23:53 +0200)]
playlist: create the playlist when needed (refs #5460)

6 years agovout: remove wrong use of pl_Get()
Rémi Denis-Courmont [Mon, 26 Nov 2012 17:00:35 +0000 (19:00 +0200)]
vout: remove wrong use of pl_Get()

6 years agoplaylist: move pl_Get()
Rémi Denis-Courmont [Mon, 26 Nov 2012 16:16:18 +0000 (18:16 +0200)]
playlist: move pl_Get()

6 years agolibvlc: do not disable the playlist earlier automatically
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:20:59 +0000 (23:20 +0200)]
libvlc: do not disable the playlist earlier automatically

6 years agoskins2: deactivate the playlist before exit
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:20:42 +0000 (23:20 +0200)]
skins2: deactivate the playlist before exit

6 years agoQt4: deactivate the playlist before exit
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:20:28 +0000 (23:20 +0200)]
Qt4: deactivate the playlist before exit

6 years agoExport playlist_Deactivate() and simplify it
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:11:05 +0000 (23:11 +0200)]
Export playlist_Deactivate() and simplify it

Those interfaces that need playlist deactivation can now call it
explicitly.

6 years agoplaylist: remove naive error case
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:33:03 +0000 (23:33 +0200)]
playlist: remove naive error case

Media library is crap, but that is not an excuse.

6 years agolibvlc: use pl_Get() as appropriate
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:27:08 +0000 (23:27 +0200)]
libvlc: use pl_Get() as appropriate

6 years agoplaylist: fix vout destruction on stop
Rémi Denis-Courmont [Mon, 26 Nov 2012 21:50:38 +0000 (23:50 +0200)]
playlist: fix vout destruction on stop

6 years agoplaylist: remove "item-current" variable
Rémi Denis-Courmont [Mon, 26 Nov 2012 19:26:36 +0000 (21:26 +0200)]
playlist: remove "item-current" variable

6 years agoUse "activity" instead of "item-current" variable
Rémi Denis-Courmont [Mon, 26 Nov 2012 19:26:13 +0000 (21:26 +0200)]
Use "activity" instead of "item-current" variable

6 years agoplaylist: remove unnecessary vlc_object_alive() checks
Rémi Denis-Courmont [Mon, 26 Nov 2012 19:10:43 +0000 (21:10 +0200)]
playlist: remove unnecessary vlc_object_alive() checks

6 years agoplaylist: trigger "activity" callback without the lock
Rémi Denis-Courmont [Mon, 26 Nov 2012 19:08:08 +0000 (21:08 +0200)]
playlist: trigger "activity" callback without the lock

That way, playlist_CurrentInput() can be called from the callbacks.

6 years agoplaylist: cosmetics
Rémi Denis-Courmont [Mon, 26 Nov 2012 19:07:08 +0000 (21:07 +0200)]
playlist: cosmetics

6 years agoplaylist: simplify loop and do not expose already dead input
Rémi Denis-Courmont [Mon, 26 Nov 2012 18:55:40 +0000 (20:55 +0200)]
playlist: simplify loop and do not expose already dead input

playlist_CurrentInput() could return the input that the playlist was
destroying. In principles, that was harmless, but silly.

6 years agoplaylist: remove stray code
Rémi Denis-Courmont [Mon, 26 Nov 2012 18:31:47 +0000 (20:31 +0200)]
playlist: remove stray code

Resetting the playing item only makes sense when there is no already
active input; NextItem() takes care of that from LoopRequest():

This code was redundant since the playlist was made tick-less (the
rebuild date check made no sense anymore).

6 years agoplaylist: allow playlist_Stop() on a killed playlist
Rémi Denis-Courmont [Mon, 26 Nov 2012 17:57:46 +0000 (19:57 +0200)]
playlist: allow playlist_Stop() on a killed playlist

6 years agoplaylist thread: use var_Inherit...()
Rémi Denis-Courmont [Mon, 26 Nov 2012 17:40:14 +0000 (19:40 +0200)]
playlist thread: use var_Inherit...()

6 years agoRemove unused #define's
Rémi Denis-Courmont [Mon, 26 Nov 2012 17:39:12 +0000 (19:39 +0200)]
Remove unused #define's

6 years agoplaylist: make "activity" a void variable and simplify
Rémi Denis-Courmont [Mon, 26 Nov 2012 17:36:16 +0000 (19:36 +0200)]
playlist: make "activity" a void variable and simplify

6 years agomacosx: fix display sleep in some situations
David Fuhrmann [Sun, 25 Nov 2012 17:18:16 +0000 (18:18 +0100)]
macosx: fix display sleep in some situations

b_active_videoplayback was not set up correctly when we wanted to prevent sleep.

(forward ported from 2.0 branch)

6 years agomacosx: remove interfaces which are now declared in .m file
David Fuhrmann [Sun, 25 Nov 2012 17:17:53 +0000 (18:17 +0100)]
macosx: remove interfaces which are now declared in .m file

6 years agoswscale: fix aspect-ratio problem properly
Ilkka Ollakka [Sun, 25 Nov 2012 17:13:37 +0000 (19:13 +0200)]
swscale: fix aspect-ratio problem properly

works with transform filter now too, fixes #7437 again.

6 years agoRevert "http access: advertize gzip encoding..." (fixes #7757)
Rémi Denis-Courmont [Sun, 25 Nov 2012 14:05:09 +0000 (16:05 +0200)]
Revert "http access: advertize gzip encoding..." (fixes #7757)

This reverts commit 703ecf7456a80e8c967742f9f77d9643dfc7874a.

6 years agowasapi: work around broken interfaces (fixes #7736)
Rémi Denis-Courmont [Sun, 25 Nov 2012 10:32:41 +0000 (12:32 +0200)]
wasapi: work around broken interfaces (fixes #7736)

6 years agoSHM: add proper support for XWD frame buffers (fixes #7608)
Rémi Denis-Courmont [Sun, 25 Nov 2012 10:07:40 +0000 (12:07 +0200)]
SHM: add proper support for XWD frame buffers (fixes #7608)

6 years agoXWD decoder
Rémi Denis-Courmont [Sat, 24 Nov 2012 17:28:53 +0000 (19:28 +0200)]
XWD decoder

6 years agoAdd codec for XWD
Rémi Denis-Courmont [Sat, 24 Nov 2012 17:28:42 +0000 (19:28 +0200)]
Add codec for XWD

6 years agoshm: cannot be paused
Rémi Denis-Courmont [Sun, 25 Nov 2012 09:54:15 +0000 (11:54 +0200)]
shm: cannot be paused

6 years agoxcb/screen: remove superfluous cast
Rémi Denis-Courmont [Sun, 25 Nov 2012 09:53:35 +0000 (11:53 +0200)]
xcb/screen: remove superfluous cast

6 years agoQt4: soft-code when to show the language setting (fixes #7803)
Rémi Denis-Courmont [Sun, 25 Nov 2012 08:26:56 +0000 (10:26 +0200)]
Qt4: soft-code when to show the language setting (fixes #7803)

6 years agoshm: fix PTS delay (fixes #7579)
Rémi Denis-Courmont [Sat, 24 Nov 2012 21:01:38 +0000 (23:01 +0200)]
shm: fix PTS delay (fixes #7579)

6 years agovout: fix segmentation fault if initialization fails
Rémi Denis-Courmont [Sat, 24 Nov 2012 20:44:41 +0000 (22:44 +0200)]
vout: fix segmentation fault if initialization fails

6 years agoshm: use block_File() instead of custom mmap() code
Rémi Denis-Courmont [Sat, 24 Nov 2012 20:30:45 +0000 (22:30 +0200)]
shm: use block_File() instead of custom mmap() code

This should let the kernel do the copy-on-write, only if required.
VLC does not memory copy the frames anymore.

6 years agodtv: fix compilation with Linux 3.7 / DVB >= 5.8 (fixes #7763)
Rémi Denis-Courmont [Sat, 24 Nov 2012 15:49:43 +0000 (17:49 +0200)]
dtv: fix compilation with Linux 3.7 / DVB >= 5.8 (fixes #7763)

6 years agowasapi: fake delay (approximately) if the stream has not started
Rémi Denis-Courmont [Sat, 24 Nov 2012 15:20:19 +0000 (17:20 +0200)]
wasapi: fake delay (approximately) if the stream has not started

6 years agomacosx: converted Bookmarks panel to HUD style
Felix Paul Kühne [Fri, 23 Nov 2012 13:11:03 +0000 (14:11 +0100)]
macosx: converted Bookmarks panel to HUD style

no functional changes

6 years agoAES3: decode to native endian
Rémi Denis-Courmont [Thu, 22 Nov 2012 21:25:33 +0000 (23:25 +0200)]
AES3: decode to native endian

(and revert earlier accidental changes)

6 years agoaout: factor out mdate() from the time_get() callback
Rémi Denis-Courmont [Thu, 22 Nov 2012 20:21:38 +0000 (22:21 +0200)]
aout: factor out mdate() from the time_get() callback

6 years agoPulseAudio: fix crash on error path
Rémi Denis-Courmont [Thu, 22 Nov 2012 18:35:47 +0000 (20:35 +0200)]
PulseAudio: fix crash on error path

6 years agoi18n: add new file
Pierre Ynard [Thu, 22 Nov 2012 01:16:44 +0000 (02:16 +0100)]
i18n: add new file

6 years agomotion: fix orientation of transform filter
Pierre Ynard [Thu, 22 Nov 2012 01:02:11 +0000 (02:02 +0100)]
motion: fix orientation of transform filter

The goal of the motion interface is to keep the video upside up. The
angles of the rotate and transform filters are oriented in opposite
directions, yet both filters are treated in the same way by the motion
code: this is incoherent and at least one code path is wrong, regardless
of the orientation of the motion sensors. On my HDAPS T42, the transform
path would turn the video upside down... my take is that its orientation
got flipped somewhere along the way. This fixes that.

6 years agoPulseAudio: try to keep all resampling on VLC side
Rémi Denis-Courmont [Wed, 21 Nov 2012 20:41:15 +0000 (22:41 +0200)]
PulseAudio: try to keep all resampling on VLC side

This reduces overall CPU consumption.

6 years agoPulseAudio: implement TimeGet()
Rémi Denis-Courmont [Wed, 21 Nov 2012 20:25:15 +0000 (22:25 +0200)]
PulseAudio: implement TimeGet()

This enables the normal VLC core resampling.

6 years agoPulseAudio: remove custom synchronization and resampling code
Rémi Denis-Courmont [Wed, 21 Nov 2012 18:40:41 +0000 (20:40 +0200)]
PulseAudio: remove custom synchronization and resampling code

The VLC core resampling _should_ work now.

6 years agoPulseAudio: do nothing on underflow
Rémi Denis-Courmont [Wed, 21 Nov 2012 18:33:52 +0000 (20:33 +0200)]
PulseAudio: do nothing on underflow

PulseAudio underflow is not (usually) an actual underrun. It just means
PulseAudio would fancy more data.

6 years agomacosx: fix playlist focus issue in nonembedded mode
David Fuhrmann [Wed, 21 Nov 2012 18:18:24 +0000 (19:18 +0100)]
macosx: fix playlist focus issue in nonembedded mode

close #7794

6 years agoaraw: revector to check all supported formats just once
Rémi Denis-Courmont [Wed, 21 Nov 2012 16:44:30 +0000 (18:44 +0200)]
araw: revector to check all supported formats just once