summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device.c5
-rw-r--r--device.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/device.c b/device.c
index 287b4353..b9505a3e 100644
--- a/device.c
+++ b/device.c
@@ -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;
diff --git a/device.h b/device.h
index 562b80a7..a5603dbe 100644
--- a/device.h
+++ b/device.h
@@ -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; }