void decsubClose( hb_work_object_t * w )
{
+ hb_work_private_t * pv = w->private_data;
+
+ if ( pv->buf )
+ hb_buffer_close( &pv->buf );
free( w->private_data );
}
* When forcing subtitles, ignore all those that don't
* have the forced flag set.
*/
+ hb_buffer_close( &pv->buf );
return NULL;
}
{
pv->buf->start = pv->pts_start;
pv->buf->stop = pv->pts_stop;
- return pv->buf;
+ buf = pv->buf;
+ pv->buf = NULL;
+ return buf;
}
/* Do the actual decoding now */