| 260 | } |
| 261 | |
| 262 | static int decssaWork( hb_work_object_t * w, hb_buffer_t ** buf_in, |
| 263 | hb_buffer_t ** buf_out ) |
| 264 | { |
| 265 | hb_work_private_t * pv = w->private_data; |
| 266 | hb_buffer_t * in; |
| 267 | int result; |
| 268 | |
| 269 | in = ssa_read(pv); |
| 270 | if (in == NULL) |
| 271 | { |
| 272 | return HB_WORK_OK; |
| 273 | } |
| 274 | |
| 275 | result = decavsubWork(pv->ctx, &in, buf_out); |
| 276 | if (in != NULL) |
| 277 | { |
| 278 | hb_buffer_close(&in); |
| 279 | } |
| 280 | return result; |
| 281 | } |
| 282 | |
| 283 | static void decssaClose( hb_work_object_t * w ) |
| 284 | { |
nothing calls this directly
no test coverage detected