Mercurial > mplayer.hg
comparison gui/interface.c @ 35564:8d4a7387d592
Relocate and change code to set Chapter and Angle start values.
Limit it to DVD.
author | ib |
---|---|
date | Mon, 10 Dec 2012 14:08:19 +0000 |
parents | d4a84f674401 |
children | 5f7a983fc838 |
comparison
equal
deleted
inserted
replaced
35563:d4a84f674401 | 35564:8d4a7387d592 |
---|---|
846 guiInfo.Track = 1; | 846 guiInfo.Track = 1; |
847 } | 847 } |
848 } else if (guiInfo.Playing) { | 848 } else if (guiInfo.Playing) { |
849 int first = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1); | 849 int first = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1); |
850 | 850 |
851 if (guiInfo.Chapter) | |
852 guiInfo.Chapter = 1; | |
853 if (guiInfo.Angle) | |
854 guiInfo.Angle = 1; | |
855 if (guiInfo.Track != first) { | 851 if (guiInfo.Track != first) { |
856 uiUnsetMedia(); | 852 uiUnsetMedia(); |
857 guiInfo.Track = first; | 853 guiInfo.Track = first; |
854 } | |
855 | |
856 if (guiInfo.StreamType == STREAMTYPE_DVD) { | |
857 guiInfo.Chapter = 1; | |
858 guiInfo.Angle = 1; | |
858 } | 859 } |
859 } | 860 } |
860 | 861 |
861 guiInfo.ElapsedTime = 0; | 862 guiInfo.ElapsedTime = 0; |
862 guiInfo.Position = 0; | 863 guiInfo.Position = 0; |