Mercurial > mplayer.hg
changeset 33001:d14cac89630d
Replace vcd_seek_to_track() by stream_control().
The call with variable vcd_track is pointless and has been removed.
author | ib |
---|---|
date | Mon, 21 Mar 2011 12:35:38 +0000 |
parents | 1c441d857d51 |
children | 676e1222fb21 |
files | gui/interface.c |
diffstat | 1 files changed, 3 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Mon Mar 21 11:59:02 2011 +0000 +++ b/gui/interface.c Mon Mar 21 12:35:38 2011 +0000 @@ -52,8 +52,6 @@ #include "stream/stream_dvd.h" #endif -int vcd_seek_to_track(void *vcd, int track); - guiInterface_t guiIntfStruct; int guiWinID = -1; @@ -698,23 +696,11 @@ #ifdef CONFIG_VCD case STREAMTYPE_VCD: - { - int i; - - if (!stream->priv) { + if (!stream->priv) guiIntfStruct.VCDTracks = 0; - break; - } - - for (i = 1; i < 100; i++) - if (vcd_seek_to_track(stream->priv, i) < 0) - break; - - vcd_seek_to_track(stream->priv, vcd_track); - guiIntfStruct.VCDTracks = --i; - + else + stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiIntfStruct.VCDTracks); break; - } #endif default: