[totem] backend: really use scaletempo instead of soundpitch plugin



commit 6afe1e2a9e464b2a42d78fc3fc327ffbf059eef0
Author: Tim-Philipp MÃller <tim centricular net>
Date:   Fri Nov 2 23:29:25 2012 +0000

    backend: really use scaletempo instead of soundpitch plugin
    
    The soundpitch plugin is irreparably broken, and the scaletempo
    offers the same features without the bugs, or the need to change
    the pitch ratio ourselves.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686391

 src/backend/bacon-video-widget.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 7c505a6..e017645 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -5967,7 +5967,7 @@ bacon_video_widget_initable_init (GInitable     *initable,
 
   /* Instantiate all the fallible plugins */
   bvw->priv->play = element_make_or_warn ("playbin", "play");
-  bvw->priv->audio_pitchcontrol = element_make_or_warn ("pitch", "scaletempo");
+  bvw->priv->audio_pitchcontrol = element_make_or_warn ("scaletempo", "scaletempo");
   video_sink = element_make_or_warn ("cluttersink", "video-sink");
   audio_sink = element_make_or_warn ("autoaudiosink", "audio-sink");
 
@@ -6154,7 +6154,6 @@ bacon_video_widget_set_rate (BaconVideoWidget *bvw,
   GstEvent *event;
   gboolean retval = FALSE;
   gint64 cur;
-  gfloat pitch, ratio;
 
   g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), FALSE);
   g_return_val_if_fail (GST_IS_ELEMENT (bvw->priv->play), FALSE);
@@ -6164,7 +6163,6 @@ bacon_video_widget_set_rate (BaconVideoWidget *bvw,
 	return TRUE;
   if (new_rate >= 2.0)
 	return TRUE;
-  ratio = new_rate / bvw->priv->rate;
 
   if (gst_element_query_position (bvw->priv->play, GST_FORMAT_TIME, &cur)) {
     GST_DEBUG ("Setting new rate at %"G_GINT64_FORMAT"", cur);



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