summaryrefslogtreecommitdiff
path: root/src/libsputext/xine_decoder.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-11 12:51:17 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-11 12:51:17 +0000
commit1be50d15e9eb8314d9f4027eb257ccc63326174c (patch)
treefd13f0e7407b615a517b55f76a67d5004ed5521d /src/libsputext/xine_decoder.c
parent7b9330b8987615d53be79c1815d1bec6726d7d3c (diff)
downloadxine-lib-1be50d15e9eb8314d9f4027eb257ccc63326174c.tar.gz
xine-lib-1be50d15e9eb8314d9f4027eb257ccc63326174c.tar.bz2
get img_duration from video_out
CVS patchset: 3871 CVS date: 2003/01/11 12:51:17
Diffstat (limited to 'src/libsputext/xine_decoder.c')
-rw-r--r--src/libsputext/xine_decoder.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c
index e824e1ea2..311f7e3dc 100644
--- a/src/libsputext/xine_decoder.c
+++ b/src/libsputext/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.45 2003/01/11 12:25:10 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.46 2003/01/11 12:52:03 miguelfreitas Exp $
*
*/
@@ -215,21 +215,14 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
do {
/* initialize decoder if needed */
- if( !this->width || !this->height ) {
+ if( !this->width || !this->height || !this->img_duration ) {
if( this->stream->video_out->status(this->stream->video_out, NULL,
- &this->width, &this->height )) {
+ &this->width, &this->height, &this->img_duration )) {
- if( this->width && this->height ) {
+ if( this->width && this->height && this->img_duration ) {
this->renderer = this->stream->osd_renderer;
- if( this->stream->master_stream )
- this->img_duration = this->stream->master_stream->metronom->get_option(
- this->stream->master_stream->metronom, METRONOM_FRAME_DURATION);
- else
- this->img_duration = this->stream->metronom->get_option(
- this->stream->metronom, METRONOM_FRAME_DURATION);
-
this->osd = NULL;
update_font_size (this);