mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
Fix a compilation problem with the example code.
Original commit message from CVS: Fix a compilation problem with the example code.
This commit is contained in:
parent
42efbe5648
commit
321f87c1cb
2 changed files with 4 additions and 4 deletions
|
@ -139,7 +139,7 @@ main (int argc, char *argv[])
|
||||||
gst_element_link_many (filesrc, decoder, audiosink, NULL);
|
gst_element_link_many (filesrc, decoder, audiosink, NULL);
|
||||||
|
|
||||||
/* start playing */
|
/* 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 */
|
/* do whatever you want here, the thread will be playing */
|
||||||
g_print ("thread is playing\n");
|
g_print ("thread is playing\n");
|
||||||
|
@ -147,7 +147,7 @@ main (int argc, char *argv[])
|
||||||
can_quit = TRUE;
|
can_quit = TRUE;
|
||||||
gst_main ();
|
gst_main ();
|
||||||
|
|
||||||
gst_pipeline_destroy (thread);
|
gst_object_unref (GST_OBJECT (thread));
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,7 @@ main (int argc, char *argv[])
|
||||||
gst_element_link_many (filesrc, decoder, audiosink, NULL);
|
gst_element_link_many (filesrc, decoder, audiosink, NULL);
|
||||||
|
|
||||||
/* start playing */
|
/* 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 */
|
/* do whatever you want here, the thread will be playing */
|
||||||
g_print ("thread is playing\n");
|
g_print ("thread is playing\n");
|
||||||
|
@ -147,7 +147,7 @@ main (int argc, char *argv[])
|
||||||
can_quit = TRUE;
|
can_quit = TRUE;
|
||||||
gst_main ();
|
gst_main ();
|
||||||
|
|
||||||
gst_pipeline_destroy (thread);
|
gst_object_unref (GST_OBJECT (thread));
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue