From 321f87c1cb508c780a8ab3473c293510e2493d41 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 16 Apr 2003 06:38:53 +0000 Subject: [PATCH] Fix a compilation problem with the example code. Original commit message from CVS: Fix a compilation problem with the example code. --- docs/manual/advanced-threads.xml | 4 ++-- docs/manual/threads.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/manual/advanced-threads.xml b/docs/manual/advanced-threads.xml index 04c4fdf..3f43a38 100644 --- a/docs/manual/advanced-threads.xml +++ b/docs/manual/advanced-threads.xml @@ -139,7 +139,7 @@ main (int argc, char *argv[]) gst_element_link_many (filesrc, decoder, audiosink, NULL); /* start playing */ - gst_element_set_state (GST_ELEMENT (thread), GST_STATE_PLAYING); + gst_element_set_state (thread, GST_STATE_PLAYING); /* do whatever you want here, the thread will be playing */ g_print ("thread is playing\n"); @@ -147,7 +147,7 @@ main (int argc, char *argv[]) can_quit = TRUE; gst_main (); - gst_pipeline_destroy (thread); + gst_object_unref (GST_OBJECT (thread)); exit (0); } diff --git a/docs/manual/threads.xml b/docs/manual/threads.xml index 04c4fdf..3f43a38 100644 --- a/docs/manual/threads.xml +++ b/docs/manual/threads.xml @@ -139,7 +139,7 @@ main (int argc, char *argv[]) gst_element_link_many (filesrc, decoder, audiosink, NULL); /* start playing */ - gst_element_set_state (GST_ELEMENT (thread), GST_STATE_PLAYING); + gst_element_set_state (thread, GST_STATE_PLAYING); /* do whatever you want here, the thread will be playing */ g_print ("thread is playing\n"); @@ -147,7 +147,7 @@ main (int argc, char *argv[]) can_quit = TRUE; gst_main (); - gst_pipeline_destroy (thread); + gst_object_unref (GST_OBJECT (thread)); exit (0); } -- 2.7.4