mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-19 17:54:13 +00:00
FS-8748 track pdf total pages and current page
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user