I suggest to add the following consts:<div><br></div><div><div>----------------------------------- device.h -----------------------------------</div><div>index e2ff812..cba70e5 100644</div><div>@@ -495,11 +495,11 @@ public:</div>
<div> ///< is more than one audio track.</div><div> int NumSubtitleTracks(void) const;</div><div> ///< Returns the number of subtitle tracks that are currently available.</div><div>- eTrackType GetCurrentAudioTrack(void) { return currentAudioTrack; }</div>
<div>+ eTrackType GetCurrentAudioTrack(void) const { return currentAudioTrack; }</div><div> bool SetCurrentAudioTrack(eTrackType Type);</div><div> ///< Sets the current audio track to the given Type.</div><div>
///< \return Returns true if Type is a valid audio track, false otherwise.</div><div>- eTrackType GetCurrentSubtitleTrack(void) { return currentSubtitleTrack; }</div><div>+ eTrackType GetCurrentSubtitleTrack(void) const { return currentSubtitleTrack; }</div>
<div> bool SetCurrentSubtitleTrack(eTrackType Type, bool Manual = false);</div><div> ///< Sets the current subtitle track to the given Type.</div><div> ///< IF Manual is true, no automatic preferred subtitle language selection</div>
<div><br></div><div>This simplifies usage of these getters in cStatus::ChannelSwitch and similar methods.</div><div><br></div>-- <br>Best Regards,<br>Joachim.<br>
</div>