input: do not override subtitles encoding if BOM is found (fixes #5239)
That horrible hack caused all subtitles to be parsed as Unicode if one
(but not necessarily all) opened subtitles started with a UTF-8 or
UTF-16 Byte Order Mark. If any other subtitle was neither in UTF-8 nor
in UTF-16 with a BOM, that hack failed.
This should not be needed (BOM is a zero-width character). If any
stream reader barks on a BOM, it really needs fixing on its own.
The subtitle demuxer was fixed in the previous commit.
In the case of transparent conversion from UTF-16 to UTF-8, the BOM
will be converted to UTF-8 as any other character. Thus the stream
reader can (correctly) detect a UTF-8 text stream.
If an UTF-8 BOM is found at the beginning of the text file, skip it
(it can confuse some parsers). Also mark the subtitle track explicitly
as UTF-8 encoded.
David Fuhrmann [Tue, 26 Jun 2012 20:50:05 +0000 (22:50 +0200)]
macosx: improve resize behaviour of splitview
Now, the sidebar will not will not resized while resizing the window.
Also, this commit sets a min width for the the sidebar. But it can
still be hidden, just drag the slider to the left.
Qt: PopupMenu: Stop crashing on VOut update. (fix #7016)
When calling a modal dialog, Qt switches to a new event loop.
The call may still have some event to process in its own queue,
and deleting it when doing the Vout update will have those events
refering to a no longer existing widget.
Rafaël Carré [Mon, 25 Jun 2012 20:16:52 +0000 (22:16 +0200)]
contrib: gpg-error: don't patch Makefile.am
Since 42a7f46de2 it is required to re-run gettextize because
we run autoreconf.
Unfortunately gettextize doesn't run in non interactive mode (this
is an advertised "feature").
This gpg-error patch will appear in the next release so it doesn't
need maintenance:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=commit;h=c35dbfdaa2e30e08185e4a468278a29e2c48b500
Rafaël Carré [Mon, 25 Jun 2012 19:27:35 +0000 (21:27 +0200)]
omx: decode qualcomm-specific tiled nv12 format
Tested on HP Touchpad up to 1280x720
1920x1080 gives:
E/OMX-VDEC-1080P: ERROR: IP Requirements(#1: 2097152) Requested(#2: 4177920)
Which probably means that provided buffers are too small for the decoder
to operate
Martin Storsjö [Thu, 21 Jul 2011 11:06:07 +0000 (14:06 +0300)]
omxil: Only set the buffer size if it is smaller than what the codec suggested
This is required on HTC Sensation. That device uses a special
tiled pixel format, which probably contains a bit of padding, too.
The size that the omx codec suggests for the output port is bigger
than what VLC calculates, and we thus should keep the larger value
instead of overwriting it with what we calculated ourselves.
As Qt >= 4.6.0 provides AbstractAnimation we no longer need QTimer
based animators.
PixmapAnimator allows to be used by Q*Painter.
Unused still frame support is removed, but can easily be implemented.
Felix Paul Kühne [Sun, 24 Jun 2012 23:15:15 +0000 (01:15 +0200)]
macosx: fixed HiDPI fspanel background artwork, which accidently included a shadow which lead to drawing artifacts since the 2 variants didn't match their sizes
macosx: removed the fspanel artwork for scale factor 1.5
This is a broken concept, since according to the HIGL, one point always equals one pixel on non-HiDPI screens regardless of the actual DPIs or the actual screen resolution.
Additionally, this interferes with our support for HiDPI
file: do not use non-blocking mode when unknown/unspecified/useless
For FIFO and sockets, non-blocking is wanted. For character device,
the effects depend on the device driver. For other types, non-blocking
mode has either no effects or is unspecified.
Felix Paul Kühne [Tue, 19 Jun 2012 16:10:05 +0000 (18:10 +0200)]
configure: link vlc and libvlc to AppKit
This looks stupid and weird. The rationale is that the PowerBox mechanism used when running VLC in a Sandbox on OS X Lion checks whether the executable is linked against AppKit. If not, neither NSOpenPanel nor NSSavePanel will appear.
Olivier Aubert [Thu, 14 Jun 2012 13:04:13 +0000 (15:04 +0200)]
libvlc_media.h: note that all options are not appliable to medias.
See
http://forum.videolan.org/viewtopic.php?f=32&t=100612&p=339220&hilit=media_add_option#p339267
and
http://forum.videolan.org/viewtopic.php?f=32&t=99357&p=333659&hilit=media_add_option#p333659
for reference.