mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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
3 changed files with 5 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "gstbin.h"
|
||||
#include "gstpipeline.h"
|
||||
#include "gstthread.h"
|
||||
#include "gsttee.h"
|
||||
|
||||
|
||||
|
||||
|
@ -75,7 +76,8 @@ gst_init (int *argc, char **argv[])
|
|||
/* register some standard builtin types */
|
||||
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("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;
|
||||
if (_gst_trace_on) {
|
||||
|
|
|
@ -101,9 +101,7 @@ static void gst_tee_init(GstTee *tee) {
|
|||
* Returns: the new tee element
|
||||
*/
|
||||
GstElement *gst_tee_new(gchar *name) {
|
||||
GstElement *tee = GST_ELEMENT(gtk_type_new(GST_TYPE_TEE));
|
||||
gst_element_set_name(GST_ELEMENT(tee),name);
|
||||
return tee;
|
||||
return gst_elementfactory_make ("tee", name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
extern GstElementDetails gst_tee_details;
|
||||
|
||||
#define GST_TYPE_TEE \
|
||||
(gst_tee_get_type())
|
||||
|
|
Loading…
Reference in a new issue