summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-10-18 13:32:08 +0000
committerphintuka <phintuka>2006-10-18 13:32:08 +0000
commit2528e2c0ac1df52001ed196033f290570c0f8057 (patch)
tree39dcd1df5021f62f7e91ea7e28c922c69f2df59c /device.c
parent8e335816cd7d240ab91b7224dd016b90a4278f72 (diff)
downloadxineliboutput-2528e2c0ac1df52001ed196033f290570c0f8057.tar.gz
xineliboutput-2528e2c0ac1df52001ed196033f290570c0f8057.tar.bz2
Allow setting currrent DVD SPU track while setting available tracks
Diffstat (limited to 'device.c')
-rw-r--r--device.c5
1 files changed, 3 insertions, 2 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;