mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
smoothwave: remove old 0.8 example containing code with sideeffects in g_return_if_fail()
May just as well remove it rather than fix it, so it doesn't show up in greps for this any longer.
This commit is contained in:
parent
2ba964df49
commit
f6591e5938
1 changed files with 0 additions and 52 deletions
|
@ -1,52 +0,0 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <gtk/gtk.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
extern gboolean _gst_plugin_spew;
|
||||
|
||||
gboolean idle_func (gpointer data);
|
||||
|
||||
GtkWidget *drawingarea;
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
GstElement *bin;
|
||||
GstElement *src;
|
||||
GstElement *wave;
|
||||
GstElement *ximage;
|
||||
|
||||
gst_init (&argc, &argv);
|
||||
gst_plugin_load ("libsmoothwave.so");
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
bin = gst_pipeline_new ("bin");
|
||||
|
||||
src = gst_element_factory_make ("sinesrc", "src");
|
||||
wave = gst_element_factory_make ("smoothwave", "wave");
|
||||
ximage = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
|
||||
g_return_val_if_fail (src != NULL, -1);
|
||||
g_return_val_if_fail (wave != NULL, -1);
|
||||
g_return_val_if_fail (ximage != NULL, -1);
|
||||
|
||||
|
||||
gst_bin_add_many (GST_BIN (bin), src, wave, ximage, NULL);
|
||||
g_return_val_if_fail (gst_element_link_many (src, wave, ximage,
|
||||
NULL) != FALSE, -1);
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (bin), GST_STATE_PLAYING);
|
||||
g_idle_add (idle_func, bin);
|
||||
|
||||
gtk_main ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
gboolean
|
||||
idle_func (gpointer data)
|
||||
{
|
||||
gst_bin_iterate (GST_BIN (data));
|
||||
return TRUE;
|
||||
}
|
Loading…
Reference in a new issue