diff options
author | phintuka <phintuka> | 2006-10-18 13:32:08 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-10-18 13:32:08 +0000 |
commit | 2528e2c0ac1df52001ed196033f290570c0f8057 (patch) | |
tree | 39dcd1df5021f62f7e91ea7e28c922c69f2df59c /device.c | |
parent | 8e335816cd7d240ab91b7224dd016b90a4278f72 (diff) | |
download | xineliboutput-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.c | 5 |
1 files changed, 3 insertions, 2 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; |