Mercurial > mplayer.hg
comparison gui/interface.c @ 35170:6f214e8ae780
Set guiInfo.Track after the stream is open.
This is only necessary if the track hasn't been set by the GUI itself
(but from a command line option, for example) in order to be able to
show the track number in the GUI's menus.
The GUI didn't show it in that case so far.
author | ib |
---|---|
date | Sun, 21 Oct 2012 15:00:48 +0000 |
parents | 627bdd8915ca |
children | 5fbd422b355e |
comparison
equal
deleted
inserted
replaced
35169:3b2c280da1af | 35170:6f214e8ae780 |
---|---|
620 stream_control(stream, STREAM_CTRL_GET_NUM_TITLES, &guiInfo.Tracks); | 620 stream_control(stream, STREAM_CTRL_GET_NUM_TITLES, &guiInfo.Tracks); |
621 guiInfo.Chapters = 0; | 621 guiInfo.Chapters = 0; |
622 stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiInfo.Chapters); | 622 stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiInfo.Chapters); |
623 guiInfo.Angles = 0; | 623 guiInfo.Angles = 0; |
624 stream_control(stream, STREAM_CTRL_GET_NUM_ANGLES, &guiInfo.Angles); | 624 stream_control(stream, STREAM_CTRL_GET_NUM_ANGLES, &guiInfo.Angles); |
625 guiInfo.Track = 0; | |
626 stream_control(stream, STREAM_CTRL_GET_CURRENT_TITLE, &guiInfo.Track); | |
627 guiInfo.Track++; | |
625 // guiInfo.Chapter will be set by mplayer | 628 // guiInfo.Chapter will be set by mplayer |
626 guiInfo.Angle = 1; | 629 guiInfo.Angle = 1; |
627 stream_control(stream, STREAM_CTRL_GET_ANGLE, &guiInfo.Angle); | 630 stream_control(stream, STREAM_CTRL_GET_ANGLE, &guiInfo.Angle); |
628 #ifdef CONFIG_DVDREAD | 631 #ifdef CONFIG_DVDREAD |
629 dvd = stream->priv; | 632 dvd = stream->priv; |