mplayer.git
16 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 months agoEnable an adjustable spacing between pixmap and label.
ib [Wed, 4 Apr 2018 16:40:38 +0000 (16:40 +0000)]
Enable an adjustable spacing between pixmap and label.

Use \b as first character of a label to get
less spacing between pixmap and label.

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

18 months agoComplete the list of DVD audio channel numbers.
ib [Wed, 4 Apr 2018 16:29:06 +0000 (16:29 +0000)]
Complete the list of DVD audio channel numbers.

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

18 months agoUse a language independent notation for DVD audio channel numbers.
ib [Wed, 4 Apr 2018 16:28:24 +0000 (16:28 +0000)]
Use a language independent notation for DVD audio channel numbers.

Use the common numeric notation instead.

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

18 months agoEnable playback menu items only during playback.
ib [Wed, 4 Apr 2018 16:06:03 +0000 (16:06 +0000)]
Enable playback menu items only during playback.

Disable them if the GUI isn't playing, but enable menu item "Play"
even then in case a file has been loaded (and is ready for playback).

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

18 months agoImplement the (missing) GUI messages evForward* and evBackward*.
ib [Wed, 4 Apr 2018 15:31:27 +0000 (15:31 +0000)]
Implement the (missing) GUI messages evForward* and evBackward*.

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

18 months agoRemove commented code.
ib [Wed, 4 Apr 2018 15:14:07 +0000 (15:14 +0000)]
Remove commented code.

It's obsolete debug and backup code.

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

18 months agoAdd missing GUI messages evIncVolume and evDecVolume to the menu.
ib [Wed, 4 Apr 2018 14:59:22 +0000 (14:59 +0000)]
Add missing GUI messages evIncVolume and evDecVolume to the menu.

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

18 months agoAdd missing GUI message evIconify to the menu.
ib [Wed, 4 Apr 2018 14:53:48 +0000 (14:53 +0000)]
Add missing GUI message evIconify to the menu.

This finally makes use of the passed window type.

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

18 months agoPass window type to the (pop-up) menu.
ib [Wed, 4 Apr 2018 14:46:09 +0000 (14:46 +0000)]
Pass window type to the (pop-up) menu.

This informs the menu which window made it pop up.

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

18 months agoMake use of the window type enumeration constants.
ib [Wed, 4 Apr 2018 14:31:26 +0000 (14:31 +0000)]
Make use of the window type enumeration constants.

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

18 months agoHarmonize Win32 GUI and X11/GTK GUI window types.
ib [Tue, 3 Apr 2018 22:10:39 +0000 (22:10 +0000)]
Harmonize Win32 GUI and X11/GTK GUI window types.

Replace the symbolic constants by the X11/GTK GUI's enumeration
constants.

(Now that 0 is a valid window type, set it -1 in case of error.)

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

18 months agoIntroduce enumeration constants for the different window types.
ib [Tue, 3 Apr 2018 21:53:17 +0000 (21:53 +0000)]
Introduce enumeration constants for the different window types.

Utilize these constants to be able to identify the window
the (pop-up) menu originates from.

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

18 months agoMove menu item "Drop subtitle".
ib [Tue, 3 Apr 2018 16:57:08 +0000 (16:57 +0000)]
Move menu item "Drop subtitle".

Remove it from the group of open menu items and place it at the end of
the group of subtitle menu items.

Additionally, disable it unless a "droppable" subtitle (like a srt file)
is currently selected as active subtitle.

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

18 months agoIntegrate the DVD audio track menu into the ordinary audio track menu.
ib [Tue, 3 Apr 2018 16:42:41 +0000 (16:42 +0000)]
Integrate the DVD audio track menu into the ordinary audio track menu.

It makes no sense to have two different menus for audio tracks
(and a special one for DVDs).

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

18 months agoCustomize DVD subtitle information to match ordinary subtitle information.
ib [Tue, 3 Apr 2018 16:30:28 +0000 (16:30 +0000)]
Customize DVD subtitle information to match ordinary subtitle information.

Add a track number.

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

18 months agoMake DVD subtitle menu item "(none)" a check menu item.
ib [Tue, 3 Apr 2018 16:18:41 +0000 (16:18 +0000)]
Make DVD subtitle menu item "(none)" a check menu item.

This is supposed to indicate that it is possible to disable DVD
subtitles.

However, in order to disable DVD subtitles, dvdsub_id must be set -2,
because -1 means that a suitable subtitle (e.g. suitable for option
'slang') will be selected.

Consequently, the check cannot be performed using dvdsub_id but has to
be performed using the actual selected subtitle ID stored in MPContext's
d_sub->id.

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

18 months agoIntegrate the DVD subtitle menu into the ordinary subtitle menu.
ib [Tue, 3 Apr 2018 15:52:24 +0000 (15:52 +0000)]
Integrate the DVD subtitle menu into the ordinary subtitle menu.

It makes no sense to have two different menus for subtitles
(and a special one for DVDs).

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

18 months agoMove menu item "Video tracks".
ib [Tue, 3 Apr 2018 11:48:42 +0000 (11:48 +0000)]
Move menu item "Video tracks".

Remove it from the group of audio menu items and
place it at the end of the group of video menu items.

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

18 months agoRearrange menu items "Rotation" and "Aspect ratio".
ib [Tue, 3 Apr 2018 11:33:43 +0000 (11:33 +0000)]
Rearrange menu items "Rotation" and "Aspect ratio".

Place "Rotation" after "Aspect ratio".

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

18 months agoRearrange the aspect ratio menu items.
ib [Tue, 3 Apr 2018 11:21:13 +0000 (11:21 +0000)]
Rearrange the aspect ratio menu items.

Place 4:3 in front of 16:9.

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

18 months agoMove menu item "Playlist".
ib [Tue, 3 Apr 2018 11:15:38 +0000 (11:15 +0000)]
Move menu item "Playlist".

Place it at the end of the group of playback menu items.

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

18 months agoIncrease buffer lengths.
ib [Tue, 3 Apr 2018 10:58:53 +0000 (10:58 +0000)]
Increase buffer lengths.

Language and subtitle information is often truncated,
so use larger buffers.

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

18 months agoShow original aspect ratio information.
ib [Tue, 3 Apr 2018 10:50:42 +0000 (10:50 +0000)]
Show original aspect ratio information.

If the original aspect ratio is (close to) 4:3, 16:9 or 2.35:1,
add this information in parentheses to the aspect ratio menu item
"Original".

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

18 months agoBe more specific about the files added in svn r34568.
ib [Tue, 3 Apr 2018 10:28:11 +0000 (10:28 +0000)]
Be more specific about the files added in svn r34568.

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

19 months agoconfigure: Disable FFmpeg bsf filter_units
al [Wed, 21 Mar 2018 19:08:27 +0000 (19:08 +0000)]
configure: Disable FFmpeg bsf filter_units

Fix build with internal FFmpeg.

At the moment we do not need and not support building
FFmpeg with the cbs subsystem and therefore we must
disable components depending on it.

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

19 months agoconfigure: Use pkg-config if freetype-config is unavailable
al [Tue, 20 Mar 2018 00:56:39 +0000 (00:56 +0000)]
configure: Use pkg-config if freetype-config is unavailable

Currently we only try to use freetype-config, but freetype-config
is deprecated by upstream. Starting soon freetype-config will
not be installed by typical freetype builds anymore.

Use pkg-config if freetype-config is not available. This
is identical to how we treat dvdnav-config and dvdread-config.

Fixes ticket #2340

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

19 months agoconfigure: faac, dirac and schroedinger are removed from FFmpeg.
reimar [Sat, 24 Feb 2018 15:23:29 +0000 (15:23 +0000)]
configure: faac, dirac and schroedinger are removed from FFmpeg.

So remove this dead code also from our configure.

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

19 months agoconfigure: Fix compilation against latest FFmpeg again.
reimar [Sat, 24 Feb 2018 15:23:27 +0000 (15:23 +0000)]
configure: Fix compilation against latest FFmpeg again.

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

20 months agode/mplayer.1: Fix bad encoding of character.
reimar [Mon, 5 Feb 2018 19:30:25 +0000 (19:30 +0000)]
de/mplayer.1: Fix bad encoding of character.

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

21 months agodemux_mng,vo_mng: Avoid inclusion of jpeg.h
al [Tue, 16 Jan 2018 20:25:23 +0000 (20:25 +0000)]
demux_mng,vo_mng: Avoid inclusion of jpeg.h

If libmng is compiled with JNG support, it pulls in jpeg.h from
within its public headers. To my knowledge we do not use JNG
directly. This change does not disable the functionality to read
JNG files with demuxer mng.

Primary this helps compilation on current Debian. The header stdio.h
needs to be included before jpeg.h , but that #include is patched out
in Debian's libmng package.

Maybe we should revert this change after Debian (and derived)
packages are fixed.

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

21 months agoconfigure: Fix detection for inet_aton function
al [Tue, 9 Jan 2018 21:47:13 +0000 (21:47 +0000)]
configure: Fix detection for inet_aton function

Unbreak the build with internal FFmpeg. The misdetection leads to a
build failure with modern FFmpeg because in that case FFmpeg defines
a static function inet_aton itself.

The program source to test for inet_aton runs into a compile error
because the missing declaration of inet_aton that is treated as
an error by at least GCC with the given CFLAGS. Fix that by
defining _BSD_SOURCE before inclusion of inet/arpa.h .

The headers here indicate that _BSD_SOURCE is deprecated. So fixing
this in configure and/or at least in the MPlayer source files,
that actually use inet_aton, would be a good thing. Those would be:

  stream/librtsp/rtsp_rtp.c
  stream/tcp.c
  stream/udp.c
  udp_sync.c

Maybe like it was done in FFmpeg commit af1818276ef271af98 .

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

21 months agoUpdate year.
ib [Mon, 8 Jan 2018 11:44:45 +0000 (11:44 +0000)]
Update year.

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

21 months agomuxer_avi: Remove needless memset to 0 after calloc
al [Sat, 6 Jan 2018 00:54:40 +0000 (00:54 +0000)]
muxer_avi: Remove needless memset to 0 after calloc

The memset calls were originally done after malloc, which was changed
in SVN r18559, to avoid potential integer multiplication overflows.

Patch by >mmcco mykolab com<

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

21 months agoconfigure: Generate negative results for AVX512
al [Thu, 4 Jan 2018 20:12:30 +0000 (20:12 +0000)]
configure: Generate negative results for AVX512

Since AVX512 support was added to FFmpeg the build with internal
FFmpeg was broken.

This unbreaks the build for now. Though detection for AVX512 should
be added later.

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

21 months agodocs : typo
compn [Mon, 1 Jan 2018 05:27:29 +0000 (05:27 +0000)]
docs : typo

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

21 months agodocs : loop 0 is good for auto reconnection to live streams
compn [Mon, 1 Jan 2018 05:26:14 +0000 (05:26 +0000)]
docs : loop 0 is good for auto reconnection to live streams

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