summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-24 17:03:18 +0000
committerphintuka <phintuka>2006-12-24 17:03:18 +0000
commitaf58e324c659cff8f2eb24ffe21aebe8b42feb2f (patch)
tree41ec48459fbb73d06d3d70f390e7e10b12e90581 /device.c
parent84f327969b4636cbace94f294acdc054c84eb3e0 (diff)
downloadxineliboutput-af58e324c659cff8f2eb24ffe21aebe8b42feb2f.tar.gz
xineliboutput-af58e324c659cff8f2eb24ffe21aebe8b42feb2f.tar.bz2
Clear old metainfo when starting new replay
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/device.c b/device.c
index 4a9eb1d4..8e8b5175 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.29 2006-12-19 17:47:15 phintuka Exp $
+ * $Id: device.c,v 1.30 2006-12-24 17:03:18 phintuka Exp $
*
*/
@@ -763,6 +763,8 @@ bool cXinelibDevice::PlayFile(const char *FileName, int Position, bool LoopPlay)
m_PlayingFile = true;
StopOutput();
}
+ for(int i = 0; i < mi_Count; i++)
+ m_MetaInfo[i][0] = 0;
if(m_server)
result = m_server->PlayFile(FileName, Position, LoopPlay);
if(m_local)
@@ -1075,7 +1077,7 @@ void cXinelibDevice::SetAudioChannelDevice(int AudioChannel)
if(m_AudioChannel != AudioChannel) {
m_AudioChannel = AudioChannel;
- /*LOGDBG("cXinelibDevice::SetAudioChannelDevice --> %d", AudioChannel);*/
+ //LOGDBG("cXinelibDevice::SetAudioChannelDevice --> %d", AudioChannel);
#if 0
switch(AudioChannel) {
default:
@@ -1371,7 +1373,6 @@ void cXinelibDevice::SetMetaInfo(eMetainfoType Type, const char *Value)
copying it will always be 0-terminated (but truncated) */
memset(m_MetaInfo[Type], 0, sizeof(m_MetaInfo[Type]));
strncpy(m_MetaInfo[Type], Value, MAX_METAINFO_LEN);
-
} else {
LOGMSG("cXinelibDevice::SetMetaInfo: unknown metainfo type");
}