mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +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,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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue