[vdr] Missing consts in cDevice
Joachim Wilke
joachim.wilke at gmail.com
Tue Feb 14 12:47:30 CET 2012
I suggest to add the following consts:
----------------------------------- device.h
-----------------------------------
index e2ff812..cba70e5 100644
@@ -495,11 +495,11 @@ public:
///< is more than one audio track.
int NumSubtitleTracks(void) const;
///< Returns the number of subtitle tracks that are currently
available.
- eTrackType GetCurrentAudioTrack(void) { return currentAudioTrack; }
+ eTrackType GetCurrentAudioTrack(void) const { return currentAudioTrack; }
bool SetCurrentAudioTrack(eTrackType Type);
///< Sets the current audio track to the given Type.
///< \return Returns true if Type is a valid audio track, false
otherwise.
- eTrackType GetCurrentSubtitleTrack(void) { return currentSubtitleTrack; }
+ eTrackType GetCurrentSubtitleTrack(void) const { return
currentSubtitleTrack; }
bool SetCurrentSubtitleTrack(eTrackType Type, bool Manual = false);
///< Sets the current subtitle track to the given Type.
///< IF Manual is true, no automatic preferred subtitle language
selection
This simplifies usage of these getters in cStatus::ChannelSwitch and
similar methods.
--
Best Regards,
Joachim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20120214/537120ba/attachment.html>
More information about the vdr
mailing list