From: Keenan P. <kee...@gm...> - 2005-05-25 02:35:57
|
In the CVS version of xine, when I play a file with Vorbis and XviD in an Ogg container, the subtitles work, but when I resize the window the subtitles don't get repositioned to the bottom of the window like they should. This was quite annoying, so I added some debugging output to figure out what the problem was. It turns out that the ffmpeg decoder plugin never gets a sensible value for the duration of each frame, so it just leaves it as zero, which confuses the subtitle plugin so it never updates the position. For now I'm using this workaround, but I'm emailing so someone can fix the real bug in the ffmpeg plugin: --- src/libsputext/xine_decoder.theirs.c 2005-05-23 22:27:32.136022848 -0400 +++ src/libsputext/xine_decoder.mine.c 2005-05-23 23:26:41.762397616 -0400 @@ -175,7 +175,7 @@ this->height = this->stream->video_out->get_property(this->stream->video_out, VO_PROP_WINDOW_HEIGHT); - if(!this->osd || (this->width && this->height && this->img_duration)) { + if(!this->osd || (this->width && this->height)) { this->renderer = this->stream->osd_renderer; update_font_size (this, 1); @@ -191,7 +191,7 @@ this->stream->video_out->status(this->stream->video_out, NULL, &this->width, &this->height, &this->img_duration ); - if(!this->osd || ( this->width && this->height && this->img_duration)) { + if(!this->osd || ( this->width && this->height)) { this->renderer = this->stream->osd_renderer; update_font_size (this, 1); |