[totem] Fix movie aspect ratio errors with slow streams
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Fix movie aspect ratio errors with slow streams
- Date: Fri, 13 Nov 2009 12:54:52 +0000 (UTC)
commit 2eb6b4ba64d01594cdd7d1d60443c2247cf55e7e
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 6110d32..569e751 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1260,6 +1260,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 ();
@@ -3877,6 +3878,7 @@ bvw_stop_play_pipeline (BaconVideoWidget * bvw)
bvw->priv->buffering_left = -1;
bvw->priv->ignore_messages_mask = 0;
bvw_reconfigure_fill_timeout (bvw, 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]