diff options
-rw-r--r-- | device.c | 5 | ||||
-rw-r--r-- | device.h | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.23 2006-10-13 04:41:03 phintuka Exp $ + * $Id: device.c,v 1.24 2006-10-18 13:32:08 phintuka Exp $ * */ @@ -1326,7 +1326,7 @@ const char *cXinelibDevice::GetDvdSpuLang(int Type) return NULL; } -bool cXinelibDevice::SetAvailableDvdSpuTrack(int Type, const char *lang) +bool cXinelibDevice::SetAvailableDvdSpuTrack(int Type, const char *lang, bool Current) { if(Type >= 0 && Type < 64 && ! m_DvdSpuTrack[Type]) { @@ -1335,6 +1335,7 @@ bool cXinelibDevice::SetAvailableDvdSpuTrack(int Type, const char *lang) if(lang) strn0cpy(m_DvdSpuLang[Type], lang, 32); m_DvdSpuTracks++; + m_CurrentDvdSpuTrack = Type; return true; } return false; @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.h,v 1.11 2006-10-13 04:41:03 phintuka Exp $ + * $Id: device.h,v 1.12 2006-10-18 13:32:08 phintuka Exp $ * */ @@ -152,7 +152,7 @@ class cXinelibDevice : public cDevice public: void ClrAvailableDvdSpuTracks(void); - bool SetAvailableDvdSpuTrack(int Type, const char *lang = NULL); + bool SetAvailableDvdSpuTrack(int Type, const char *lang = NULL, bool Current=false); const char *GetDvdSpuLang(int Type); int NumDvdSpuTracks(void) const { return m_DvdSpuTracks; } int GetCurrentDvdSpuTrack(void) { return m_CurrentDvdSpuTrack; } |