[gnome-devel-docs] demos: fix guitar tuner not playing more than 32 times.
- From: Luis Menina <lmenina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] demos: fix guitar tuner not playing more than 32 times.
- Date: Wed, 25 Sep 2013 19:52:07 +0000 (UTC)
commit d575e7b7e6a9300c98fdbd2dfee6c80f76958df2
Author: Luis Menina <liberforce freeside fr>
Date: Wed Sep 25 21:30:51 2013 +0200
demos: fix guitar tuner not playing more than 32 times.
platform-demos/C/guitar-tuner.c.page | 4 ++--
platform-demos/C/guitar-tuner/guitar-tuner.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/guitar-tuner.c.page b/platform-demos/C/guitar-tuner.c.page
index 39acd9e..1829008 100644
--- a/platform-demos/C/guitar-tuner.c.page
+++ b/platform-demos/C/guitar-tuner.c.page
@@ -206,12 +206,12 @@ play_sound (gdouble frequency)
static gboolean
pipeline_stop (GstElement* pipeline)
{
- gst_element_set_state (pipeline, GST_STATE_PAUSED);
+ gst_element_set_state (pipeline, GST_STATE_NULL);
g_object_unref (pipeline);
return FALSE;
}]]></code>
- <p>The call to <code>gst_element_set_state</code> pauses the playback of the pipeline and
<code>g_object_unref</code> unreferences the pipeline, destroying it and freeing its memory.</p>
+ <p>The call to <code>gst_element_set_state</code> stops the playback of the pipeline and
<code>g_object_unref</code> unreferences the pipeline, destroying it and freeing its memory.</p>
</section>
<section id="tones">
diff --git a/platform-demos/C/guitar-tuner/guitar-tuner.c b/platform-demos/C/guitar-tuner/guitar-tuner.c
index e7725f9..4246d02 100644
--- a/platform-demos/C/guitar-tuner/guitar-tuner.c
+++ b/platform-demos/C/guitar-tuner/guitar-tuner.c
@@ -24,7 +24,7 @@
static gboolean
pipeline_stop (GstElement* pipeline)
{
- gst_element_set_state (pipeline, GST_STATE_PAUSED);
+ gst_element_set_state (pipeline, GST_STATE_NULL);
g_object_unref (pipeline);
/* disconnect handler */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]