[totem] Use gst_message_parse_buffering() instead of manually getting the percents from the message.
- From: Sebastian Dröge <sdroege src gnome org>
- To: svn-commits-list gnome org
- Subject: [totem] Use gst_message_parse_buffering() instead of manually getting the percents from the message.
- Date: Mon, 8 Jun 2009 06:18:31 -0400 (EDT)
commit 4e08fc053d07743ec3c7afaa03afb75b16dd5f2e
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Sun Jun 7 23:17:46 2009 +0200
Use gst_message_parse_buffering() instead of manually getting the percents from the message.
2009-06-07 Sebastian Dröge <sebastian droege collabora co uk>
* src/backend/bacon-video-widget-gst-0.10.c:
Use gst_message_parse_buffering() instead of manually getting
the percents from the message.
---
ChangeLog | 6 ++++++
src/backend/bacon-video-widget-gst-0.10.c | 3 +--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0683073..9801c44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-07 Sebastian Dröge <sebastian droege collabora co uk>
+
+ * src/backend/bacon-video-widget-gst-0.10.c:
+ Use gst_message_parse_buffering() instead of manually getting
+ the percents from the message.
+
2009-06-03 Philip Withnall <philip tecnocode co uk>
* configure.in:
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index a515651..bd515dc 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1637,8 +1637,7 @@ bvw_bus_message_cb (GstBus * bus, GstMessage * message, gpointer data)
case GST_MESSAGE_BUFFERING: {
gint percent = 0;
- /* FIXME: use gst_message_parse_buffering() once core 0.10.11 is out */
- gst_structure_get_int (message->structure, "buffer-percent", &percent);
+ gst_message_parse_buffering (message, &percent);
g_signal_emit (bvw, bvw_signals[SIGNAL_BUFFERING], 0, percent);
if (percent >= 100) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]