[totem] Stop the download buffering timeout when done
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Stop the download buffering timeout when done
- Date: Wed, 4 Nov 2009 19:42:10 +0000 (UTC)
commit 6c3c98ea469e31a8a70ccce637a2d84990c4ef5b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 4 17:03:27 2009 +0000
Stop the download buffering timeout when done
No need to keep the download buffering timeout going if
we've already buffered all we can.
src/backend/bacon-video-widget-gst-0.10.c | 7 +++++++
1 files changed, 7 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 ae480db..af5e09f 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -2237,6 +2237,13 @@ bvw_query_buffering_timeout (BaconVideoWidget *bvw)
GST_DEBUG ("download buffer filled up to %f%%", fill * 100.0);
g_signal_emit (bvw, bvw_signals[SIGNAL_DOWNLOAD_BUFFERING], 0, fill);
+
+ /* Finished buffering, so don't run the timeout anymore */
+ if (fill == 1.0) {
+ bvw->priv->fill_id = 0;
+ gst_query_unref (query);
+ return FALSE;
+ }
}
gst_query_unref (query);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]