FS-8748 track pdf total pages and current page

This commit is contained in:
Seven Du committed 2016-03-17 09:34:57 +08:00
1 parent 1204abf87a
commit 8b7f0766f1
2 files changed
+6

No files matched your search

@@ -161,6 +161,7 @@ static switch_status_t imagick_file_open(switch_file_handle_t *handle, const cha
}
context->pagecount = GetImageListLength(context->images);
handle->duration = context->pagecount;
if (context->max) {
context->samples = (handle->samplerate / 1000) * context->max;
@@ -359,6 +360,7 @@ static switch_status_t imagick_file_seek(switch_file_handle_t *handle, unsigned
context->pagenumber = page;
context->same_page = 0;
*cur_sample = page;
handle->vpos = page;
}
return status;