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,6 +41,8 @@ main (int argc, char *argv[])
g_print ("Creating pipeline\n");
pipeline = gst_pipeline_new ("pipeline");
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);

View file

@ -5,6 +5,7 @@
*/
#include <gst/gst.h>
#include "property.h"
GstElement *
element_create (char *name, char *element)
@ -40,6 +41,8 @@ main (int argc, char *argv[])
g_print ("Creating pipeline\n");
pipeline = gst_pipeline_new ("pipeline");
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);