[MPlayer-dev-eng] [PATCH] GUI: Fix blocking after end of file when trying to play file/stream/playlist if playlist is empty

Hans-Dieter Kosch hdkosch at kabelbw.de
Sun Nov 25 03:11:24 CET 2012


Hi Ingo,

the blocking is not yet fully solved. If the playlist has been cleared during 
session, after the next end of file we still run into the "filename == NULL" 
blocking when we select PLAY (the last filename is still displayed, btw.).

The attached patch fixes this (hopefully, this time I better hit the goal).


File:

gui/interface.c


Changelog:

Fix blocking of GUI after end of file when trying to play file/stream/playlist
if playlist is empty:

Reset 'guiInfo.Filename' to NULL if playlist has been cleared during session,
so that a new PLAY request will be ignored instead of blocking in mplayer.c.

Additionally, reset 'guiInfo.StreamType' to STREAMTYPE_DUMMY and 'guiInfo.Track'
to 0, so that we get the same indications as on startup with an empty playlist.


Hans-Dieter


PS: There's some weirdness in displaying track number and video size, next patch 
to be expected soon. Editing playlist has also some issues, but this is future 
work...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui_interface.c.patch
Type: text/x-patch
Size: 873 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20121125/8db7ff16/attachment.bin>


More information about the MPlayer-dev-eng mailing list