textoverlay: subtitles shown with delay after keyframe seek
Submitted by Tomasz Sałaciński
Link to original bug (#531166)
Description
Hello,
As you may know, seeking the movie with MicroDVD subtitles will make the subs disappear for few seconds. This patch will make the subtitles work great - like in MPlayer, Xine or FFDShow (the subs are shown instantly and GST is not slowed down). Actually, it will make GSTreamer the best media framerowk for these subs, because it supports italic/bold text, right now the only issue is seeking. Here it is:
<
< if (!in_seg) { return NULL; }
434,435c434,439if (in_seg) {
state->start_time = clip_start;
state->duration = clip_stop - clip_start;
} else {
return NULL;
}
Tested with few subtitle files, and it works ok. I would like to ask someone to test it:) If you want to download the patch file, go here:
http://dp0154.debowypark.waw.pl/gst-sub-patch.diff
I am working on TMPlayer subtitle parser patch too, but AFAIK you prefer to open a new bug, so I'm doing it.
Cheers,
and thanks for GStreamer,
Tomasz Sałaciński