[totem] backend: Remove change_rate() helper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Remove change_rate() helper
- Date: Tue, 3 Jul 2012 18:25:25 +0000 (UTC)
commit 7b98f9aa0da55e0474deb1877dcc14e3aaf78c22
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jul 3 16:08:01 2012 +0100
backend: Remove change_rate() helper
It's trivial code that's best implemented along with the UI.
src/backend/bacon-video-widget-gst-0.10.c | 15 +--------------
src/backend/bacon-video-widget.h | 2 --
2 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 220d62d..8036949 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -6191,21 +6191,8 @@ bacon_video_widget_set_rate (BaconVideoWidget *bvw, gfloat new_rate)
else {
GST_DEBUG ("failed to query position");
}
- return retval;
-}
-
-gboolean
-bacon_video_widget_change_rate (BaconVideoWidget *bvw, gboolean increase)
-{
- gfloat rate;
- g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), FALSE);
- g_return_val_if_fail (GST_IS_ELEMENT (bvw->priv->play), FALSE);
-
- rate = bvw->priv->rate;
- rate += (increase) ? 0.1 : -0.1;
-
- return bacon_video_widget_set_rate (bvw, rate);
+ return retval;
}
/*
diff --git a/src/backend/bacon-video-widget.h b/src/backend/bacon-video-widget.h
index c04d587..049a479 100644
--- a/src/backend/bacon-video-widget.h
+++ b/src/backend/bacon-video-widget.h
@@ -198,8 +198,6 @@ void bacon_video_widget_set_user_agent (BaconVideoWidget *bvw,
void bacon_video_widget_set_referrer (BaconVideoWidget *bvw,
const char *referrer);
-gboolean bacon_video_widget_change_rate (BaconVideoWidget *bvw,
- gboolean increase);
gboolean bacon_video_widget_set_rate (BaconVideoWidget *bvw,
gfloat new_rate);
gfloat bacon_video_widget_get_rate (BaconVideoWidget *bvw);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]