git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@794 e54a6e83-5905-42d5-8d5c-058d10e6a962

This commit is contained in:
satbaby
2010-09-23 09:48:21 +00:00
parent 755938e480
commit d1084d62ff

View File

@@ -3830,13 +3830,13 @@ static void save_info(CMovieInfo * cmovie, MI_MOVIE_INFO * minfo, char * dpart,
reset_atime(dpart, minfo->file.Time);
}
static void find_new_part(char * npart, char * dpart,size_t npart_len, size_t dpart_len)
static void find_new_part(char * npart, char * dpart,size_t dpart_len)
{
struct stat64 s;
int dp = 0;
snprintf(dpart, dpart_len, "%s_%d.ts", npart, dp);
while (!stat64(dpart, &s)) {
snprintf(dpart, npart_len, "%s_%d.ts", npart, ++dp);
snprintf(dpart, dpart_len, "%s_%d.ts", npart, ++dp);
}
}
@@ -3980,7 +3980,7 @@ printf("\n");
char * ptr = strstr(npart, ".ts");
if(ptr)
*ptr = 0;
find_new_part(npart, dpart,sizeof(npart), sizeof(dpart) );
find_new_part(npart, dpart, sizeof(dpart) );
tt = time(0);
printf("\n********* new file %s expected size %lld, start time %s", dpart, newsize, ctime (&tt));
dstfd = open (dpart, O_CREAT|O_WRONLY|O_TRUNC| O_LARGEFILE, 0644);
@@ -4217,7 +4217,7 @@ printf("\ncopy: processing bookmark %d at %lld len %lld\n", i, books[i].pos, boo
continue;
}
if(!dst_done || !onefile) {
find_new_part(npart, dpart,sizeof(npart), sizeof(dpart) );
find_new_part(npart, dpart, sizeof(dpart) );
dstfd = open (dpart, O_CREAT|O_WRONLY|O_TRUNC| O_LARGEFILE, 0644);
printf("copy: new file %s fd %d\n", dpart, dstfd);
if(dstfd < 0) {