Handle the tee element like bin, thread, pipeline, so that it can be used in gstreamer-inspect and gstreamer-launch...
Original commit message from CVS: Handle the tee element like bin, thread, pipeline, so that it can be used in gstreamer-inspect and gstreamer-launch...
This commit is contained in:
parent
a0c0706dfb
commit
5193d34848
@ -31,6 +31,7 @@
|
|||||||
#include "gstbin.h"
|
#include "gstbin.h"
|
||||||
#include "gstpipeline.h"
|
#include "gstpipeline.h"
|
||||||
#include "gstthread.h"
|
#include "gstthread.h"
|
||||||
|
#include "gsttee.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -75,7 +76,8 @@ gst_init (int *argc, char **argv[])
|
|||||||
/* register some standard builtin types */
|
/* register some standard builtin types */
|
||||||
gst_elementfactory_new ("bin", gst_bin_get_type (), &gst_bin_details);
|
gst_elementfactory_new ("bin", gst_bin_get_type (), &gst_bin_details);
|
||||||
gst_elementfactory_new ("pipeline", gst_pipeline_get_type (), &gst_pipeline_details);
|
gst_elementfactory_new ("pipeline", gst_pipeline_get_type (), &gst_pipeline_details);
|
||||||
gst_elementfactory_new("thread", gst_thread_get_type (), &gst_thread_details);
|
gst_elementfactory_new ("thread", gst_thread_get_type (), &gst_thread_details);
|
||||||
|
gst_elementfactory_new ("tee", gst_tee_get_type (), &gst_tee_details);
|
||||||
|
|
||||||
_gst_trace_on = 0;
|
_gst_trace_on = 0;
|
||||||
if (_gst_trace_on) {
|
if (_gst_trace_on) {
|
||||||
|
@ -101,9 +101,7 @@ static void gst_tee_init(GstTee *tee) {
|
|||||||
* Returns: the new tee element
|
* Returns: the new tee element
|
||||||
*/
|
*/
|
||||||
GstElement *gst_tee_new(gchar *name) {
|
GstElement *gst_tee_new(gchar *name) {
|
||||||
GstElement *tee = GST_ELEMENT(gtk_type_new(GST_TYPE_TEE));
|
return gst_elementfactory_make ("tee", name);
|
||||||
gst_element_set_name(GST_ELEMENT(tee),name);
|
|
||||||
return tee;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
extern GstElementDetails gst_tee_details;
|
||||||
|
|
||||||
#define GST_TYPE_TEE \
|
#define GST_TYPE_TEE \
|
||||||
(gst_tee_get_type())
|
(gst_tee_get_type())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user