| 590 | } |
| 591 | |
| 592 | static int decsrtWork( hb_work_object_t * w, hb_buffer_t ** buf_in, |
| 593 | hb_buffer_t ** buf_out ) |
| 594 | { |
| 595 | hb_work_private_t * pv = w->private_data; |
| 596 | hb_buffer_t * in; |
| 597 | int result; |
| 598 | |
| 599 | in = srt_read( pv ); |
| 600 | if (in == NULL) |
| 601 | { |
| 602 | return HB_WORK_OK; |
| 603 | } |
| 604 | |
| 605 | result = decavsubWork(pv->ctx, &in, buf_out); |
| 606 | if (in != NULL) |
| 607 | { |
| 608 | hb_buffer_close(&in); |
| 609 | } |
| 610 | return result; |
| 611 | } |
| 612 | |
| 613 | static void decsrtClose( hb_work_object_t * w ) |
| 614 | { |
nothing calls this directly
no test coverage detected