summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-13 18:48:58 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2014-12-17 20:10:54 +0100
commit2cebc520654e9569adaface29434da9f27608d51 (patch)
treeb62853c787b7799357843b67f01cc8ebf8481565
parent34e504bf93996058425a2cdb884b7dd4576cda68 (diff)
downloadmpv-2cebc520654e9569adaface29434da9f27608d51.tar.bz2
mpv-2cebc520654e9569adaface29434da9f27608d51.tar.xz
stream_cdda: don't return number of tracks as number of titles
Apparently, we treat different tracks as titles, so returning the number of titles (which is user-visible as "disc-titles" property) is completely misguided.
-rw-r--r--stream/stream_cdda.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index 37a3aab1c5..52eeb3e3e5 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -243,11 +243,6 @@ static int control(stream_t *stream, int cmd, void *arg)
{
cdda_priv *p = stream->priv;
switch (cmd) {
- case STREAM_CTRL_GET_NUM_TITLES:
- {
- *(unsigned int *)arg = p->cd->tracks;
- return STREAM_OK;
- }
case STREAM_CTRL_GET_NUM_CHAPTERS:
{
int start_track = get_track_by_sector(p, p->start_sector);