use properties

Original commit message from CVS:
use properties
This commit is contained in:
Thomas Vander Stichele 2002-02-12 13:53:15 +00:00
parent cc3b3cc116
commit bc9abdfd96
2 changed files with 8 additions and 2 deletions

View file

@ -5,6 +5,7 @@
*/
#include <gst/gst.h>
#include "property.h"
GstElement *
element_create (char *name, char *element)
@ -40,7 +41,9 @@ main (int argc, char *argv[])
g_print ("Creating pipeline\n");
pipeline = gst_pipeline_new ("pipeline");
g_print ("Creating elements\n");
g_print ("Connecting signals to pipeline\n");
g_signal_connect (pipeline, "deep_notify", G_CALLBACK (property_change_callback), NULL);
g_print ("Creating elements\n");
if (!(src = element_create ("src", "fakesrc"))) return 1;
g_object_set (G_OBJECT (src), "sizetype", 2, NULL);
if (!(sink = element_create ("sink", "fakesink"))) return 1;

View file

@ -5,6 +5,7 @@
*/
#include <gst/gst.h>
#include "property.h"
GstElement *
element_create (char *name, char *element)
@ -40,7 +41,9 @@ main (int argc, char *argv[])
g_print ("Creating pipeline\n");
pipeline = gst_pipeline_new ("pipeline");
g_print ("Creating elements\n");
g_print ("Connecting signals to pipeline\n");
g_signal_connect (pipeline, "deep_notify", G_CALLBACK (property_change_callback), NULL);
g_print ("Creating elements\n");
if (!(src = element_create ("src", "fakesrc"))) return 1;
g_object_set (G_OBJECT (src), "sizetype", 2, NULL);
if (!(sink = element_create ("sink", "fakesink"))) return 1;