summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorAndreas Mair <andreas@vdr-developer.org>2010-05-29 16:47:56 +0200
committerAndreas Mair <andreas@vdr-developer.org>2010-05-29 16:47:56 +0200
commit916da87bf4b739215aa921cda97a36b816e5ba41 (patch)
treee3e1f3baa811ba9e89de99736c9e69baef42fd1f /tools.c
parentab6811d93006be2338c9711b40d1d67533a094ca (diff)
downloadvdr-plugin-extrecmenu-916da87bf4b739215aa921cda97a36b816e5ba41.tar.gz
vdr-plugin-extrecmenu-916da87bf4b739215aa921cda97a36b816e5ba41.tar.bz2
Version 1.2-test1-am2bv1.2-test1-am2b
- fixed PES cutting using cutting queue (Reported by tomas @vdr-portal.de). - fixed some gcc warnings and errors (Based on suggestions by Zzam @vdr-portal.de).
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools.c b/tools.c
index 62e3ee5..377a5c1 100644
--- a/tools.c
+++ b/tools.c
@@ -213,10 +213,10 @@ char *myRecListItem::StripEpisodeName(char *s)
if(SortByName)
*s1=1;
else
- *(s2+1)=255;
+ *(s2+1)=(char)255;
}
else
- *s1=255;
+ *s1=(char)255;
if(s1 && s2 && !SortByName)
memmove(s1+1,s2,t-s2+1);
@@ -299,7 +299,7 @@ void WorkerThread::Action()
if(editedfilename && RemoveVideoFile(editedfilename) && MakeDirs(editedfilename,true))
{
char *s=strdup(editedfilename);
- char *e=strrchr(s,'.');
+ char *e=(char*)strrchr(s,'.'); //TODO
if(e)
{
if(!strcmp(e,".rec"))
@@ -494,7 +494,7 @@ void WorkerThread::Cut(string From,string To)
lastiframe=0;
if(cutin)
{
-#if VDRVERSNUM >= 10703
+#if VDRVERSNUM >= 10706
if(isPesRecording)
cRemux::SetBrokenLink(buffer,length);
else
@@ -510,7 +510,7 @@ void WorkerThread::Cut(string From,string To)
error="safe_write";
break;
}
- if(!toindex->Write(picturetype,tofilename->Number(),filesize))
+ if(!toindex->Write(picturetype,(uint16_t)(tofilename->Number()),filesize))
{
error="toindex";
break;