[totem/gnome-2-28] Fix movie aspect ratio errors with slow streams



commit 37a3c9a40caa32440e2fa6d66e932fffe4b54268
Author: Jan Schmidt <thaytan noraisin net>
Date:   Fri Nov 13 12:50:26 2009 +0000

    Fix movie aspect ratio errors with slow streams
    
    When getting media size before the pipeline is pre-rolled,
    we'd be getting errors because we're trying to set the aspect ratio
    with a zero denominator.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=601707

 src/backend/bacon-video-widget-gst-0.10.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 117c51d..f72324c 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1234,6 +1234,7 @@ bacon_video_widget_init (BaconVideoWidget * bvw)
   priv->videotags = NULL;
   priv->zoom = 1.0;
   priv->volume = -1.0;
+  priv->movie_par_n = priv->movie_par_d = 1;
 
   priv->lock = g_mutex_new ();
 
@@ -3581,6 +3582,7 @@ bvw_stop_play_pipeline (BaconVideoWidget * bvw)
   bvw->priv->buffering = FALSE;
   bvw->priv->plugin_install_in_progress = FALSE;
   bvw->priv->ignore_messages_mask = 0;
+  bvw->priv->movie_par_n = bvw->priv->movie_par_d = 1;
   if (bvw->priv->cover_pixbuf) {
     g_object_unref (bvw->priv->cover_pixbuf);
     bvw->priv->cover_pixbuf = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]