mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
use properties
Original commit message from CVS: use properties
This commit is contained in:
parent
cc3b3cc116
commit
bc9abdfd96
2 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue