mplayer.git
6 weeks agospudec: Increase image data alignment to 16 bytes. master
reimar [Thu, 4 Jul 2019 11:28:02 +0000 (11:28 +0000)]
spudec: Increase image data alignment to 16 bytes.

Allows using SSE2 aligned loads on the data.
Switch to av_malloc and av_freep as well, so
it also works if native malloc has a smaller
default alignment.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38150 b3059339-0415-0410-9bf9-f77b7e298cf2

6 weeks agoosd_template: fix possible subtitle corruption.
reimar [Thu, 4 Jul 2019 11:28:01 +0000 (11:28 +0000)]
osd_template: fix possible subtitle corruption.

Stride padding of alpha is not guaranteed to be
zerod, which can result in some corruption on the
right border.
Change SSE2 code to fall back to C code for the
last part if width is not a multiple of 16.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38149 b3059339-0415-0410-9bf9-f77b7e298cf2

7 weeks agoRemove ivtv ao and vo drivers
al [Fri, 28 Jun 2019 21:05:15 +0000 (21:05 +0000)]
Remove ivtv ao and vo drivers

IVTV support is for a long time available through Video4Linux.
The hardware can still be used through the v4l2 vo and ao drivers.

There is still IVTV linux code in a VIDIX driver. This change
doesn't remove the IVTV remnants in the VIDIX source.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38148 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agokai: check boundaries more strictly
komh [Wed, 29 May 2019 09:57:32 +0000 (09:57 +0000)]
kai: check boundaries more strictly

Suggested by reimar.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38147 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agokva: check boundaries more strictly
komh [Wed, 29 May 2019 09:56:50 +0000 (09:56 +0000)]
kva: check boundaries more strictly

Suggested by reimar.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38146 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agovf_eq.c, vf_eq2.c: Add SSE2 support.
reimar [Mon, 27 May 2019 20:02:14 +0000 (20:02 +0000)]
vf_eq.c, vf_eq2.c: Add SSE2 support.

The code is actually identical, it would be
even nicer if it was actually shared.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38145 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agopullup.c: Add SSE2 support to pullup filtering.
reimar [Mon, 27 May 2019 20:02:13 +0000 (20:02 +0000)]
pullup.c: Add SSE2 support to pullup filtering.

About 2x faster vf_pullup.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38144 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agoosd_template.c: Add intrinsic based SSE2 support.
reimar [Mon, 27 May 2019 20:02:12 +0000 (20:02 +0000)]
osd_template.c: Add intrinsic based SSE2 support.

Intrinsics are not well liked for good reason,
but it is much faster to implement and compilers
are no longer completely horrible for x86.
Speed is about 2x-3x and it matches the C code instead
of the less accurate MMX code.
Primary motivation is though that MMX is starting to
have worse and worse support in CPUs.
To benchmark, use this command and remove the reading code
from rawvideo and the memcpy_pic from vf_expand.
./mplayer /dev/zero -demuxer rawvideo -rawvideo w=1920:h=1080:format=yuy2 -vo null -osdlevel 3 -benchmark -quiet -frames 50000 -vf expand=osd=1 -subfont-osd-scale 20

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38143 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agoconfigure: update zlib-dependent codec list.
reimar [Sun, 26 May 2019 18:56:32 +0000 (18:56 +0000)]
configure: update zlib-dependent codec list.

Fixes compilation without zlib.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38142 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agoconfigure: improve aarch64 handling.
reimar [Sun, 26 May 2019 18:56:31 +0000 (18:56 +0000)]
configure: improve aarch64 handling.

Automatically detect 64- vs. 32-bit build
like for other architectures.
Also detect NEON and VFP support correctly.
Lastly, disable inline assembly NEON code
on AARCH64 that only works on 32-bit.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38141 b3059339-0415-0410-9bf9-f77b7e298cf2

2 months agokva: fix buffer overflow
komh [Fri, 24 May 2019 10:42:53 +0000 (10:42 +0000)]
kva: fix buffer overflow

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38140 b3059339-0415-0410-9bf9-f77b7e298cf2

3 months agovf_noise: make static array const.
reimar [Tue, 21 May 2019 18:21:41 +0000 (18:21 +0000)]
vf_noise: make static array const.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38139 b3059339-0415-0410-9bf9-f77b7e298cf2

3 months agoAdd check for stdatomic.h
reimar [Mon, 20 May 2019 16:45:17 +0000 (16:45 +0000)]
Add check for stdatomic.h

If not found, try adding the gcc compat header.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38138 b3059339-0415-0410-9bf9-f77b7e298cf2

3 months agoFix compilation without zlib.
reimar [Mon, 20 May 2019 16:45:16 +0000 (16:45 +0000)]
Fix compilation without zlib.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38137 b3059339-0415-0410-9bf9-f77b7e298cf2

3 months agoRemove use of "long double".
reimar [Mon, 20 May 2019 16:45:14 +0000 (16:45 +0000)]
Remove use of "long double".

The values are only "double", and "long double"
on x86 forces the use of x87 instructions which
are less efficient.
Also "long double" is not available on other
architectures.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38136 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agorelease-howto.txt: Remove freshmeat part
al [Fri, 19 Apr 2019 13:03:05 +0000 (13:03 +0000)]
release-howto.txt: Remove freshmeat part

Seems freshmeat/freecode is kind of closed down.

The content is still up, but static.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38135 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agovo caca: Don't translate key up to key down
al [Fri, 19 Apr 2019 09:22:57 +0000 (09:22 +0000)]
vo caca: Don't translate key up to key down

Regression since SVN r34363 .

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38134 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agoChangelog: Close latest open section as 1.4
al [Thu, 18 Apr 2019 19:20:26 +0000 (19:20 +0000)]
Changelog: Close latest open section as 1.4

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38132 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agoChangelog: Update
al [Tue, 16 Apr 2019 22:37:32 +0000 (22:37 +0000)]
Changelog: Update

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38129 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agoconfigure: Fix reading the branch control file for FFmpeg
al [Mon, 15 Apr 2019 20:04:09 +0000 (20:04 +0000)]
configure: Fix reading the branch control file for FFmpeg

The file tested against and the read file didn't match since
the feature was initially committed in SVN r36946 .

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38128 b3059339-0415-0410-9bf9-f77b7e298cf2

4 months agovo_aa: Fix subtitle display
al [Mon, 15 Apr 2019 16:09:42 +0000 (16:09 +0000)]
vo_aa: Fix subtitle display

Override subtitle font (stored in sub_font) too.

This fixes a regression probably introduced at
the time the separate subtitle font was added
in 2007 (SVN r23356).

All in all, the subtitle and OSD support of vo aa
was a hack from the time it was added. If we choose
to evolve the subtitle code in MPlayer, this hack
will have to be replaced sooner or later.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38126 b3059339-0415-0410-9bf9-f77b7e298cf2

5 months agoUpdate man page.
ib [Sat, 9 Mar 2019 18:18:32 +0000 (18:18 +0000)]
Update man page.

This closes Trac #2352.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38125 b3059339-0415-0410-9bf9-f77b7e298cf2

6 months agoChange the skin browser icon.
ib [Fri, 15 Feb 2019 18:39:23 +0000 (18:39 +0000)]
Change the skin browser icon.

The old one was too similar to a well-known logo.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38124 b3059339-0415-0410-9bf9-f77b7e298cf2

6 months agoAdd missing language code for Norsk.
ib [Fri, 15 Feb 2019 18:33:20 +0000 (18:33 +0000)]
Add missing language code for Norsk.

This is a possible language code provided by the demuxer.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38123 b3059339-0415-0410-9bf9-f77b7e298cf2

7 months agocodecs.conf: merge duplicate m100 decoders, got isom from .qtx strings
compn [Sun, 13 Jan 2019 02:11:42 +0000 (02:11 +0000)]
codecs.conf: merge duplicate m100 decoders, got isom from .qtx strings

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38122 b3059339-0415-0410-9bf9-f77b7e298cf2

7 months agocodecs.conf add media100 binary codec tested working on win7
compn [Sat, 12 Jan 2019 19:24:57 +0000 (19:24 +0000)]
codecs.conf add media100 binary codec tested working on win7

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38121 b3059339-0415-0410-9bf9-f77b7e298cf2

7 months agoUpdate year.
ib [Tue, 1 Jan 2019 11:26:09 +0000 (11:26 +0000)]
Update year.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38120 b3059339-0415-0410-9bf9-f77b7e298cf2

8 months agostream_bd: support new VUK storage locations of libaacs.
reimar [Sat, 15 Dec 2018 15:38:25 +0000 (15:38 +0000)]
stream_bd: support new VUK storage locations of libaacs.

This allows stream_bd to decrypt files previously
played with stream_br and current libaacs for example.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38119 b3059339-0415-0410-9bf9-f77b7e298cf2

8 months agoconfigure: detect struct pollfd.
reimar [Sat, 15 Dec 2018 15:38:24 +0000 (15:38 +0000)]
configure: detect struct pollfd.

Fixes trac issue #2350.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38118 b3059339-0415-0410-9bf9-f77b7e298cf2

10 months agoFix build after ffmpeg commit series starting with
iive [Sat, 13 Oct 2018 13:48:44 +0000 (13:48 +0000)]
Fix build after ffmpeg commit series starting with
6734eef6b8b464139fdc140ec9bc9e8d74173869
"Add coded bitstream read/write API".

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38117 b3059339-0415-0410-9bf9-f77b7e298cf2

11 months agocodecs.conf: add ff imm4 decoder
compn [Fri, 31 Aug 2018 23:17:07 +0000 (23:17 +0000)]
codecs.conf: add ff imm4 decoder

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38116 b3059339-0415-0410-9bf9-f77b7e298cf2

12 months agoconfigure: OS/2: remove 'T' flag from ar flags
al [Thu, 16 Aug 2018 23:56:06 +0000 (23:56 +0000)]
configure: OS/2: remove 'T' flag from ar flags

Though ar on OS/2 supports creating thin archives, the linker does
not support linking them.

Patch by KO Myung-Hun >komh78 gmail com<

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38115 b3059339-0415-0410-9bf9-f77b7e298cf2

12 months agoconfigure: Search for parsers in the right file again
al [Wed, 8 Aug 2018 22:27:16 +0000 (22:27 +0000)]
configure: Search for parsers in the right file again

Fix build with internal FFmpeg.

After FFmpeg commit 3735d55af32 the list of possible parsers
is stored in libavcodec/parsers.c (instead of embedded in
parser.c as it was before).

Patch on mplayer-users from Dieter >d_werner gmx net<
Patch on mplayer-dev-eng from KO Myung-Hun >komh78 gmail com<

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38114 b3059339-0415-0410-9bf9-f77b7e298cf2

14 months agoAllow the GUI to overwrite option allow_playlist_parsing.
ib [Sun, 10 Jun 2018 16:20:59 +0000 (16:20 +0000)]
Allow the GUI to overwrite option allow_playlist_parsing.

Add GUI option support_playlists to be able to allow playlist parsing
even if disabled by MPlayer.

(Since GUI's playlist parsing only takes effect if the user explicitly
loads a playlist file through the file selector's playlist filter, it
can be assumed that they are knowing what they are doing. There will be
no playlist parsing the user can't be aware of. Moreover, instead of
having to enable dangerous playlist parsing in MPlayer's configuration
file - and thus more or less unrestrictedly - parsing can be restricted
to GUI usage this way.)

Add an entry to the preference dialog where the new option can be
configured.

Additionally, update man pages.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38113 b3059339-0415-0410-9bf9-f77b7e298cf2

14 months agoCosmetic: Adjust indent.
ib [Sun, 10 Jun 2018 16:00:09 +0000 (16:00 +0000)]
Cosmetic: Adjust indent.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38112 b3059339-0415-0410-9bf9-f77b7e298cf2

14 months agoDon't unconditionally add a file selector playlist filter.
ib [Sun, 10 Jun 2018 15:59:24 +0000 (15:59 +0000)]
Don't unconditionally add a file selector playlist filter.

If playlist parsing is disabled by MPlayer, playlist playback will be
impossible. So check for it and omit the playlist filter in case the
parsing is disabled. It would otherwise be confusing for the user to be
able to select a playlist that won't play then.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38111 b3059339-0415-0410-9bf9-f77b7e298cf2

14 months agoDefine variable allow_playlist_parsing globally.
ib [Sun, 10 Jun 2018 15:53:58 +0000 (15:53 +0000)]
Define variable allow_playlist_parsing globally.

This will allow the GUI to check for it and to decide whether
a file selector filter for playlists should be provided.

(It won't make sense to provide such filter if playlist parsing
is disabled by MPlayer.)

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38110 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoUse thin .a files if possible.
reimar [Sun, 6 May 2018 20:08:10 +0000 (20:08 +0000)]
Use thin .a files if possible.

Instead of copying all .o files, the .a file
just has the symbol index and references to the
.o files in thin mode.
As we never install the .a files anywhere, that
makes more sense for us, reducing disk usage
and I/O requirements when building.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38109 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoMinor spelling fix.
reimar [Sun, 6 May 2018 17:12:31 +0000 (17:12 +0000)]
Minor spelling fix.

Fix from Debian, by Mateusz Lukasik <mati75 at linuxmint pl>

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38108 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoconfigure: Disable FFmpeg VapourSynth demuxer
al [Sat, 5 May 2018 23:15:14 +0000 (23:15 +0000)]
configure: Disable FFmpeg VapourSynth demuxer

Enabling the demuxer usually breaks the build as we have no
check for VapourSynth.

Patch by Erik Auerswald >auerswal unix-ag.uni-kl de<

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38107 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoUse longjmp to test OS SSE support.
reimar [Sat, 5 May 2018 19:00:22 +0000 (19:00 +0000)]
Use longjmp to test OS SSE support.

Note that on modern Linux version we could
really just assume it to be present.

Fixes trac issue #2343.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38106 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoReset stream IDs on DVD title change.
ib [Tue, 1 May 2018 12:44:49 +0000 (12:44 +0000)]
Reset stream IDs on DVD title change.

An audio, video or subtitle track selected by the user
must be reset when the title of a DVD changes.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38105 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoCosmetic: Adjust indent.
ib [Thu, 26 Apr 2018 04:01:01 +0000 (04:01 +0000)]
Cosmetic: Adjust indent.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38104 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoRevise DVD audio track selection.
ib [Thu, 26 Apr 2018 03:59:00 +0000 (03:59 +0000)]
Revise DVD audio track selection.

Check whether there are at least two DVD audio tracks before offering
the user an audio track selection. It makes no sense to have that
selection menu for just one audio track.

This is consistent with the audio track selection menu for all other
stream types now.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38103 b3059339-0415-0410-9bf9-f77b7e298cf2

15 months agoReset track on CD, VCD or DVD playback change.
ib [Thu, 26 Apr 2018 02:38:52 +0000 (02:38 +0000)]
Reset track on CD, VCD or DVD playback change.

The track may already be set by the (current) playback
of an other stream type, so reset it when starting a CD,
VCD or DVD playback.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38102 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoconfigure: add some defines for less noisy FFmpeg compilation.
reimar [Tue, 17 Apr 2018 21:39:31 +0000 (21:39 +0000)]
configure: add some defines for less noisy FFmpeg compilation.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38101 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoconfigure: fix --enable-ffmpeg_so
reimar [Tue, 17 Apr 2018 21:39:30 +0000 (21:39 +0000)]
configure: fix --enable-ffmpeg_so

It needs to set "$ffmpeg" to yes even though
we run no auto-detection.
Fixes issue #2339.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38100 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoUpdate Changelog.
ib [Sun, 15 Apr 2018 10:45:22 +0000 (10:45 +0000)]
Update Changelog.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38099 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoUpdate skin documentation on image formats.
ib [Sun, 15 Apr 2018 10:36:51 +0000 (10:36 +0000)]
Update skin documentation on image formats.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38098 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoCosmetic: Adjust indent.
ib [Sun, 15 Apr 2018 10:12:15 +0000 (10:12 +0000)]
Cosmetic: Adjust indent.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38097 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoSupport AV_PIX_FMT_PAL8.
ib [Sun, 15 Apr 2018 10:10:28 +0000 (10:10 +0000)]
Support AV_PIX_FMT_PAL8.

This typically is the output format of
PNG optimizers like optipng or zopflipng.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38096 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoPass pixel format information.
ib [Sun, 15 Apr 2018 10:01:56 +0000 (10:01 +0000)]
Pass pixel format information.

Rather than the bpp, the pixel format determines
the later conversion to ARGB, so receive the format
from pngRead() to utilize it in convert_ARGB().

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38095 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove checks for unsupported pixel formats.
ib [Sun, 15 Apr 2018 09:48:00 +0000 (09:48 +0000)]
Remove checks for unsupported pixel formats.

It makes no sense to check for pixel formats
and copy images which will be rejected later
in bpRead() anyway.

Additionally, change the debug message.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38094 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoReplace three dots by an ellipsis.
ib [Fri, 13 Apr 2018 14:08:24 +0000 (14:08 +0000)]
Replace three dots by an ellipsis.

Since the GUI's character encoding is UTF-8, it's time
for the remnants of ASCII times to finally disappear.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38093 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRevise German translation of MSGTR_GUI_MSG_SkinCfgSelectedNotFound.
ib [Fri, 13 Apr 2018 13:55:24 +0000 (13:55 +0000)]
Revise German translation of MSGTR_GUI_MSG_SkinCfgSelectedNotFound.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38092 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoMake messages translatable.
ib [Fri, 13 Apr 2018 13:48:20 +0000 (13:48 +0000)]
Make messages translatable.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38091 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRename FILESELECT_AUDIO FILESELECT_AUDIO_TRACK.
ib [Fri, 13 Apr 2018 12:49:37 +0000 (12:49 +0000)]
Rename FILESELECT_AUDIO FILESELECT_AUDIO_TRACK.

This is more accurate.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38090 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAdd icons for the various file selector selection (resp. file) types.
ib [Fri, 13 Apr 2018 12:43:04 +0000 (12:43 +0000)]
Add icons for the various file selector selection (resp. file) types.

Due to ancient GTK+ code these cannot be in Portable Network Graphics
format for the time being, but they have been carefully optimized by
hand.

Add fs_get_pixmap() which will return the icon appropriate to the
FILESELECT type or to the filter the file extension is in. Call it
for every file when building the file list.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38089 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAdd a new file selector filter of popular audio and video file types.
ib [Fri, 13 Apr 2018 11:00:04 +0000 (11:00 +0000)]
Add a new file selector filter of popular audio and video file types.

Make this filter the new default for FILESELECT_VIDEO_AUDIO.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38088 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoChange unreasonable argument.
ib [Fri, 13 Apr 2018 10:52:24 +0000 (10:52 +0000)]
Change unreasonable argument.

Assume 25 fps.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38087 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove unnecessary code.
ib [Fri, 13 Apr 2018 10:47:58 +0000 (10:47 +0000)]
Remove unnecessary code.

MPlayer will take care of the OSD.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38086 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoConvert subtitle file name in the Win32 GUI Wine build.
ib [Fri, 13 Apr 2018 10:44:31 +0000 (10:44 +0000)]
Convert subtitle file name in the Win32 GUI Wine build.

The Windows style subtitle file name needs to be converted,
so that it can be found in the Linux filesystem.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38085 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove strdup() in Win32 GUI.
ib [Fri, 13 Apr 2018 10:40:13 +0000 (10:40 +0000)]
Remove strdup() in Win32 GUI.

It is unnecessary to duplicate the name.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38084 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRestrict the possibility to load a subtitle in Win32 GUI.
ib [Fri, 13 Apr 2018 10:17:47 +0000 (10:17 +0000)]
Restrict the possibility to load a subtitle in Win32 GUI.

Allow it only if not already playing.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38083 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoDon't continue in case of an evLoadSubtitle error in Win32 GUI.
ib [Fri, 13 Apr 2018 10:12:18 +0000 (10:12 +0000)]
Don't continue in case of an evLoadSubtitle error in Win32 GUI.

Calling update_set_of_subtitles() in case of a sub_read_file() error
would delete the currently used subtitle instead of loading a new one.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38082 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove pointless code in Win32 GUI.
ib [Fri, 13 Apr 2018 10:06:59 +0000 (10:06 +0000)]
Remove pointless code in Win32 GUI.

Don't use sub_name[] to pass the subtitle name, because the following
call to update_set_of_subtitles() will handle it by using subdata.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38081 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoDon't disallow loading a subtitle in Win32 GUI when playback is stopped.
ib [Fri, 13 Apr 2018 10:03:00 +0000 (10:03 +0000)]
Don't disallow loading a subtitle in Win32 GUI when playback is stopped.

Actually, a subtitle has to be loaded before the playback.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38080 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoMake Win32 GUI's unix_name() globally accessible.
ib [Fri, 13 Apr 2018 09:52:22 +0000 (09:52 +0000)]
Make Win32 GUI's unix_name() globally accessible.

We will soon need it outside interface.c.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38079 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAvoid warning in Win32 GUI.
ib [Fri, 13 Apr 2018 09:42:35 +0000 (09:42 +0000)]
Avoid warning in Win32 GUI.

Since svn r37840, codecname is assigned a constant character pointer.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38078 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAvoid warning in Win32 GUI.
ib [Fri, 13 Apr 2018 09:33:08 +0000 (09:33 +0000)]
Avoid warning in Win32 GUI.

Without CD and DVD support 'unix_device' is defined but not used.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38077 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoCall mplayerLoadSubtitle() after destruction of the file selector window.
ib [Fri, 13 Apr 2018 09:02:51 +0000 (09:02 +0000)]
Call mplayerLoadSubtitle() after destruction of the file selector window.

In case of an error, it allows X to redraw the parts of the windows
previously covered by the file selector prior to displaying the error
message box.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38076 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoImprove gmp_msg().
ib [Fri, 13 Apr 2018 08:46:49 +0000 (08:46 +0000)]
Improve gmp_msg().

Handle X events prior to a MSGBOX_FATAL, because gtkMessageBox()
will block the main window while it is showing the message box.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38075 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRestrict the possibility to load a subtitle.
ib [Thu, 12 Apr 2018 13:00:10 +0000 (13:00 +0000)]
Restrict the possibility to load a subtitle.

Allow it only if not already playing.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38074 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoFix broken subtitle track display after evDropSubtitle.
ib [Thu, 12 Apr 2018 12:57:35 +0000 (12:57 +0000)]
Fix broken subtitle track display after evDropSubtitle.

After the drop, the check mark of the currently active
subtitle was missing.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38073 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoDon't continue in case of an evLoadSubtitle error.
ib [Thu, 12 Apr 2018 12:53:41 +0000 (12:53 +0000)]
Don't continue in case of an evLoadSubtitle error.

Calling update_set_of_subtitles() in case of a sub_read_file() error
would delete the currently used subtitle instead of loading a new one.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38072 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoFix broken evDropSubtitle.
ib [Thu, 12 Apr 2018 12:46:21 +0000 (12:46 +0000)]
Fix broken evDropSubtitle.

Don't free guiInfo.SubtitleFilename, because not necessarily
the loaded guiInfo.SubtitleFilename is requested to be dropped,
but the currently displayed subtitle.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38071 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoMake guiInfo.SubtitleFilename available as long as the video plays.
ib [Thu, 12 Apr 2018 12:40:54 +0000 (12:40 +0000)]
Make guiInfo.SubtitleFilename available as long as the video plays.

Don't clear guiInfo.SubtitleFilename with uiUnsetMedia(FALSE),
because media is unset (i.e. prepared) this way whenever a new
file will be loaded for playback which happens *after* loading
a separate subtitle.

So explicitly clear guiInfo.SubtitleFilename only by a full unset
(uiUnsetMedia(TRUE)) and regularly unset it after a playback has
ended (at GUI_END_PLAY).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38070 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove pointless code.
ib [Thu, 12 Apr 2018 12:23:53 +0000 (12:23 +0000)]
Remove pointless code.

Don't use sub_name[] to pass the subtitle name, because the following
call to update_set_of_subtitles() will handle it by using subdata.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38069 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoDon't disallow loading a subtitle when playback is stopped.
ib [Thu, 12 Apr 2018 12:18:18 +0000 (12:18 +0000)]
Don't disallow loading a subtitle when playback is stopped.

Actually, a subtitle has to be loaded before the playback.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38068 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoDon't use guiInfo.SubtitleFilename as a copy of subdata.
ib [Thu, 12 Apr 2018 12:15:11 +0000 (12:15 +0000)]
Don't use guiInfo.SubtitleFilename as a copy of subdata.

subdata is the file based subtitle currently displayed whereas
guiInfo.SubtitleFilename is a subtitle loaded by evLoadSubtitle.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38067 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAdjust the count of SUB_SOURCE_SUBS when updating set_of_subtitles.
ib [Thu, 12 Apr 2018 11:29:17 +0000 (11:29 +0000)]
Adjust the count of SUB_SOURCE_SUBS when updating set_of_subtitles.

When deleting or adding a subtitle, update not only set_of_sub_size,
but sub_counts[SUB_SOURCE_SUBS] as well. The count will be otherwise
useless.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38066 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRestrict the possibility to load a separate audio track.
ib [Thu, 12 Apr 2018 09:34:27 +0000 (09:34 +0000)]
Restrict the possibility to load a separate audio track.

Allow it only if not already playing.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38065 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoFix broken evLoadAudioFile.
ib [Thu, 12 Apr 2018 09:12:55 +0000 (09:12 +0000)]
Fix broken evLoadAudioFile.

It did not work so far. A separately loaded audio track did not play.

guiInfo.AudioFilename must not be cleared by uiUnsetMedia(FALSE),
because media is unset (i.e. prepared) this way whenever a new file
will be loaded for playback which happens *after* loading a separate
audio track.

So explicitly clear guiInfo.AudioFilename only by a full unset
(uiUnsetMedia(TRUE)) and regularly unset it after a playback has
ended (at GUI_END_PLAY).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38064 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove unused variables.
ib [Wed, 11 Apr 2018 12:12:44 +0000 (12:12 +0000)]
Remove unused variables.

They serve no purpose.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38063 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRename parameters.
ib [Wed, 11 Apr 2018 12:05:27 +0000 (12:05 +0000)]
Rename parameters.

It should be easier to understand now.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38062 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove the menu item text extensions.
ib [Wed, 11 Apr 2018 11:50:51 +0000 (11:50 +0000)]
Remove the menu item text extensions.

It is completely unnecessary to extend the texts by adding spaces.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38061 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoAdd missing (so far blank) menu icons.
ib [Wed, 11 Apr 2018 11:42:58 +0000 (11:42 +0000)]
Add missing (so far blank) menu icons.

The new menu items added in svn r38039, r38040, r38042 and r38047
had a blank dummy icon so far.

Replace the blank icon with an icon symbolizing the respective
menu item:

  audio_dts
  audio_lpcm
  audio_mpeg
  minimize
  seek_backward_10min
  seek_backward_10sec
  seek_backward_1min
  seek_forward_10min
  seek_forward_10sec
  seek_forward_1min
  volume
  volume_decrease
  volume_increase

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38060 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoUpdate the X PixMap dialog icons still required.
ib [Wed, 11 Apr 2018 11:11:31 +0000 (11:11 +0000)]
Update the X PixMap dialog icons still required.

Due to ancient GTK+ code these cannot be replaced
by Portable Network Graphics for the time being,
but they have been carefully optimized by hand.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38059 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoCosmetic: Adjust indent.
ib [Wed, 11 Apr 2018 10:39:19 +0000 (10:39 +0000)]
Cosmetic: Adjust indent.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38058 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoGet rid of blank_1px.
ib [Wed, 11 Apr 2018 10:37:12 +0000 (10:37 +0000)]
Get rid of blank_1px.

If no icon is required, it is more self-explanatory to pass NULL and
use an empty label instead (which then does not occupy the additional
space of 1 pixel).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38057 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoReplace X PixMap icons by new icons in Portable Network Graphics format.
ib [Wed, 11 Apr 2018 10:26:39 +0000 (10:26 +0000)]
Replace X PixMap icons by new icons in Portable Network Graphics format.

Define the new icons as GdkPixbufs in icons.c and declare them in
icons.h.

Create GtkImages from the GdkPixbufs. GtkImages are now used instead
of GdkPixmaps.

(Most of the changes are purely cosmetic: "xpm" is replaced by "png".)

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38056 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoReplace icons "dir2" and "open2" by "dir" and "open".
ib [Thu, 5 Apr 2018 19:30:09 +0000 (19:30 +0000)]
Replace icons "dir2" and "open2" by "dir" and "open".

We don't need these similar icons twice.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38055 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoMake AddMenuItem(), AddSubMenu() and AddSeparator() static.
ib [Thu, 5 Apr 2018 13:33:01 +0000 (13:33 +0000)]
Make AddMenuItem(), AddSubMenu() and AddSeparator() static.

They only have file scope.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38054 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoChange German translation of MSGTR_GUI_DropSubtitle.
ib [Thu, 5 Apr 2018 13:30:17 +0000 (13:30 +0000)]
Change German translation of MSGTR_GUI_DropSubtitle.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38053 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRename X PixMap files.
ib [Thu, 5 Apr 2018 13:26:10 +0000 (13:26 +0000)]
Rename X PixMap files.

The (sometimes) messy naming of the xpm files has evolved historically.
Bring some order into it by renaming.

Concerning "file" and "file2", we don't need two similar icons. Remove
"file" and rename "file2" "file".

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38052 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoFix compilation with new FFmpeg that require generation of filter list
rtogni [Thu, 5 Apr 2018 00:10:18 +0000 (00:10 +0000)]
Fix compilation with new FFmpeg that require generation of filter list

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38051 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoPrettify message boxes.
ib [Wed, 4 Apr 2018 18:00:44 +0000 (18:00 +0000)]
Prettify message boxes.

Remove all gtk_widget_set_usize() calls for the icons and
add a small padding.

Remove the gtk_widget_set_usize() call for the message box
if containing a short text and improve the placement and
alignment of the message texts.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38050 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoPrettify the file selector dialog.
ib [Wed, 4 Apr 2018 17:42:59 +0000 (17:42 +0000)]
Prettify the file selector dialog.

Increase its height, position it a bit higher
and make the "directory up" button a bit smaller.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38049 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoRemove unreasonable gtk_widget_set_usize() calls.
ib [Wed, 4 Apr 2018 17:31:07 +0000 (17:31 +0000)]
Remove unreasonable gtk_widget_set_usize() calls.

These unnecessarily cause extremely small widgets.

Their appearance is more natural now.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38048 b3059339-0415-0410-9bf9-f77b7e298cf2

16 months agoReplace language dependent description of DVD audio channel types.
ib [Wed, 4 Apr 2018 17:22:20 +0000 (17:22 +0000)]
Replace language dependent description of DVD audio channel types.

Use icons instead. (For the time being, but not for long,
everything but "Dolby Digital" lacks a corresponding icon.)

Place the audio channel number with reduced spacing next to the icon.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38047 b3059339-0415-0410-9bf9-f77b7e298cf2