| 2248 | } |
| 2249 | |
| 2250 | static inline void copy_chapter( hb_buffer_t * dst, hb_buffer_t * src ) |
| 2251 | { |
| 2252 | // Propagate any chapter breaks for the worker if and only if the |
| 2253 | // output frame has the same time stamp as the input frame (any |
| 2254 | // worker that delays frames has to propagate the chapter marks itself |
| 2255 | // and workers that move chapter marks to a different time should set |
| 2256 | // 'src' to NULL so that this code won't generate spurious duplicates.) |
| 2257 | if( src && dst && src->s.start == dst->s.start && src->s.new_chap != 0) |
| 2258 | { |
| 2259 | // restore log below to debug chapter mark propagation problems |
| 2260 | dst->s.new_chap = src->s.new_chap; |
| 2261 | } |
| 2262 | } |
| 2263 | |
| 2264 | /** |
| 2265 | * Performs the work object's specific work function. |