Mercurial > mplayer.hg
diff gui/ui/actions.c @ 34387:0ba85cad4c7e
Add audio CD playback support to the X11/GTK GUI.
(The Win32 GUI already had this support. Add missing - although already
used - user event evPlayCD here as well as internal event ivSetCDTrack
- although it's unused - for consistency.)
author | ib |
---|---|
date | Sat, 31 Dec 2011 12:38:52 +0000 |
parents | deff81b57903 |
children | f2c03009068d |
line wrap: on
line diff
--- a/gui/ui/actions.c Sat Dec 31 12:20:08 2011 +0000 +++ b/gui/ui/actions.c Sat Dec 31 12:38:52 2011 +0000 @@ -242,6 +242,11 @@ return; switch (guiInfo.StreamType) { +#ifdef CONFIG_CDDA + case STREAMTYPE_CDDA: + break; +#endif + #ifdef CONFIG_VCD case STREAMTYPE_VCD: break; @@ -281,6 +286,15 @@ return; switch (guiInfo.StreamType) { +#ifdef CONFIG_CDDA + case STREAMTYPE_CDDA: + if (--guiInfo.Track == 0) { + guiInfo.Track = 1; + stop = 1; + } + break; +#endif + #ifdef CONFIG_VCD case STREAMTYPE_VCD: if (--guiInfo.Track == 1) { @@ -335,6 +349,17 @@ return; switch (guiInfo.StreamType) { +#ifdef CONFIG_CDDA + case STREAMTYPE_CDDA: + + if (++guiInfo.Track > guiInfo.Tracks) { + guiInfo.Track = guiInfo.Tracks; + stop = 1; + } + + break; +#endif + #ifdef CONFIG_VCD case STREAMTYPE_VCD: