diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2000-09-17 22:08:09 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2000-09-17 22:08:09 +0000 |
commit | cab1728fa5774bf1873b9530465daaa36c854b46 (patch) | |
tree | 5b50afca74b6f9a535c303ed57ce80a85b7b782d /gst/gstpipeline.h | |
parent | f7bace76aad6e2ad98baeef7b35689cd5665acfd (diff) |
Added gst_pipeline_add_sink/src to allow multiple sink cases and more complex autoplugging. Update docs too.
Original commit message from CVS:
Added gst_pipeline_add_sink/src to allow multiple sink cases and
more complex autoplugging. Update docs too.
Simplified the pipeline autoplugging code.
Changed the cothread case: One iteration is now a push from the src
element. The disk source does not change its state anymore on eof.
Better type setting for the ac3 parser/decoder and mpeg2parse.
Diffstat (limited to 'gst/gstpipeline.h')
-rw-r--r-- | gst/gstpipeline.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/gstpipeline.h b/gst/gstpipeline.h index f186eaf705..7416ff62e0 100644 --- a/gst/gstpipeline.h +++ b/gst/gstpipeline.h @@ -48,6 +48,9 @@ typedef struct _GstPipelineClass GstPipelineClass; struct _GstPipeline { GstBin bin; + + GstElement *src; // we only allow one src element + GList *sinks; // and multiple sinks }; struct _GstPipelineClass { @@ -60,6 +63,9 @@ GstElement *gst_pipeline_new(guchar *name); gboolean gst_pipeline_autoplug(GstPipeline *pipeline); +void gst_pipeline_add_src(GstPipeline *pipeline, GstElement *src); +void gst_pipeline_add_sink(GstPipeline *pipeline, GstElement *sink); + void gst_pipeline_iterate(GstPipeline *pipeline); #ifdef __cplusplus |