[MPlayer-dev-eng] gui: subtitle menu is not populated when playing from mpg file

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Aug 13 21:37:54 CEST 2014


On Tue, Aug 12, 2014 at 09:04:21PM +0200, Ingo Brückl wrote:
> Reimar Döffinger wrote Tue, 12 Aug 2014 20:15:05 +0200:
> 
> > I would think that the global sub size variable ideally should be kept
> > up-to-date automatically. I guess that is one way to make that happen,
> > I was just more wondering why it doesn't happen automatically once we
> > got a new subtitle stream, instead of on every read of that variable.
> 
> On getting a new subtitle stream we only have access to the demuxer
> (variable), the global sub stuff is stored whithin the mpctx. I don't know
> whether this is necessary or a design flaw or just something that had been
> added later.
> 
> I could try moving the global sub information to the demuxer, but I will only
> learn during implementation whether this is possible at all. I cannot
> overview at the moment.

No, that is not possible in a reasonable way I think.
However it is possible to either detect or explicitly signal a change
in the number of streams.
Note that I am not convinced that this will be better than your
suggestion in the end, so feel free to go ahead with that.
I just wanted to point out that it doesn't feel ideal.


More information about the MPlayer-dev-eng mailing list