[MPlayer-dev-eng] [PATCH] GUI: Fix blocking after end of file when replaying a single file

Ingo Brückl ib at wupperonline.de
Thu Nov 22 13:26:35 CET 2012


Hans-Dieter Kosch wrote on Thu, 22 Nov 2012 01:29:12 +0100:

> Ingo Brückl wrote:
>> Hans-Dieter Kosch wrote on Wed, 21 Nov 2012 01:45:46 +0100:
>>
>>> Fix blocking of GUI after end of file when replaying a single file:
>>> Don't clear 'filename' but retain it.
>>
>> There is a bug (thanks for reporting), but this isn't the solution. Please
>> stay tuned.
>>
> I'm quite new to the mplayer code and I already guessed, that it's not that
> simple:

Your patch helped me to immediately recognize what the problem is and how to
fix it. A bug report without your patch would have caused me to do a lot of
debugging.

> There's interaction between 'filename' and 'guiInfo.Filename' (of course);
> moreover, 'filename' is a global variable

This is, because there isn't yet a clear separation between GUI and MPlayer
code. Although the GUI tries to be on its own with own variables and such, it
currently has to use some global MPlayer variables until there is a clearly
defined interface between them (which, however, is work in progress).

In case of 'filename', the GUI has to set it in order to "use MPlayer as a
playback engine", but it does set it from its playlist.

Ingo


More information about the MPlayer-dev-eng mailing list