summaryrefslogtreecommitdiff
path: root/gst/gstpipeline.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2005-05-29 13:57:00 +0000
committerBenjamin Otte <otte@gnome.org>2005-05-29 13:57:00 +0000
commitc50aa69137dec1ecd95c82302081aea9d2fab39c (patch)
tree35e187ffbd065bf6a8dd9e1c03b3387d98a164e9 /gst/gstpipeline.c
parent27c43157156a24237285130f2d80fca41447c760 (diff)
downloadgstreamer-BRANCH-COMPANY.tar.gz
add actions. see ChangeLog for detailsBRANCH-COMPANY
Original commit message from CVS: add actions. see ChangeLog for details
Diffstat (limited to 'gst/gstpipeline.c')
-rw-r--r--gst/gstpipeline.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c
index acfb8f3991..17a2a5e0b7 100644
--- a/gst/gstpipeline.c
+++ b/gst/gstpipeline.c
@@ -25,6 +25,7 @@
#include "gstpipeline.h"
#include "gstinfo.h"
#include "gstscheduler.h"
+#include "gstschedulerfactory.h"
static GstElementDetails gst_pipeline_details =
GST_ELEMENT_DETAILS ("Pipeline object",
@@ -52,8 +53,6 @@ static void gst_pipeline_init (GTypeInstance * instance, gpointer g_class);
static void gst_pipeline_dispose (GObject * object);
-static GstElementStateReturn gst_pipeline_change_state (GstElement * element);
-
static GstBinClass *parent_class = NULL;
/* static guint gst_pipeline_signals[LAST_SIGNAL] = { 0 }; */
@@ -95,15 +94,11 @@ static void
gst_pipeline_class_init (gpointer g_class, gpointer class_data)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (g_class);
- GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
GstPipelineClass *klass = GST_PIPELINE_CLASS (g_class);
parent_class = g_type_class_peek_parent (klass);
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_pipeline_dispose);
-
- gstelement_class->change_state =
- GST_DEBUG_FUNCPTR (gst_pipeline_change_state);
}
static void
@@ -137,7 +132,6 @@ gst_pipeline_dispose (GObject * object)
g_assert (GST_IS_SCHEDULER (GST_ELEMENT_SCHED (pipeline)));
sched = GST_ELEMENT_SCHED (pipeline);
- gst_scheduler_reset (sched);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
@@ -154,24 +148,3 @@ gst_pipeline_new (const gchar * name)
{
return gst_element_factory_make ("pipeline", name);
}
-
-static GstElementStateReturn
-gst_pipeline_change_state (GstElement * element)
-{
- switch (GST_STATE_TRANSITION (element)) {
- case GST_STATE_NULL_TO_READY:
- gst_scheduler_setup (GST_ELEMENT_SCHED (element));
- break;
- case GST_STATE_READY_TO_PAUSED:
- case GST_STATE_PAUSED_TO_PLAYING:
- case GST_STATE_PLAYING_TO_PAUSED:
- case GST_STATE_PAUSED_TO_READY:
- case GST_STATE_READY_TO_NULL:
- break;
- }
-
- if (GST_ELEMENT_CLASS (parent_class)->change_state)
- return GST_ELEMENT_CLASS (parent_class)->change_state (element);
-
- return GST_STATE_SUCCESS;
-}