mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- moviecut: don't paint progressbar when no bookmarks found
This commit is contained in:
@@ -317,14 +317,6 @@ bool CMovieCut::cutMovie(MI_MOVIE_INFO * minfo, CMovieInfo * cmovie)
|
|||||||
time_t tt = time(0);
|
time_t tt = time(0);
|
||||||
time_t tt1;
|
time_t tt1;
|
||||||
|
|
||||||
unsigned char * buf = new unsigned char[BUF_SIZE];
|
|
||||||
if (buf == 0) {
|
|
||||||
perror("new");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
paintProgress(true);
|
|
||||||
|
|
||||||
off64_t size = minfo->file.Size;
|
off64_t size = minfo->file.Size;
|
||||||
off64_t secsize = getSecondSize(minfo);
|
off64_t secsize = getSecondSize(minfo);
|
||||||
off64_t newsize = size;
|
off64_t newsize = size;
|
||||||
@@ -356,11 +348,18 @@ bool CMovieCut::cutMovie(MI_MOVIE_INFO * minfo, CMovieInfo * cmovie)
|
|||||||
printf("CMovieCut::%s: end bookmark %d at %" PRId64 "\n", __func__, bcount, books[bcount].pos);
|
printf("CMovieCut::%s: end bookmark %d at %" PRId64 "\n", __func__, bcount, books[bcount].pos);
|
||||||
bcount++;
|
bcount++;
|
||||||
}
|
}
|
||||||
printf("\n");
|
|
||||||
if (!bcount) {
|
if (!bcount)
|
||||||
delete [] buf;
|
return false;
|
||||||
|
|
||||||
|
unsigned char * buf = new unsigned char[BUF_SIZE];
|
||||||
|
if (buf == 0) {
|
||||||
|
perror("new");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
paintProgress(true);
|
||||||
|
|
||||||
qsort(books, bcount, sizeof(struct mybook), compare_book);
|
qsort(books, bcount, sizeof(struct mybook), compare_book);
|
||||||
for (int i = 0; i < bcount; i++) {
|
for (int i = 0; i < bcount; i++) {
|
||||||
if (books[i].ok) {
|
if (books[i].ok) {
|
||||||
@@ -528,6 +527,7 @@ bool CMovieCut::copyMovie(MI_MOVIE_INFO * minfo, CMovieInfo * cmovie, bool onefi
|
|||||||
bcount++;
|
bcount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bcount)
|
if (!bcount)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user