summaryrefslogtreecommitdiff
path: root/gst/realmedia
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-11-18 13:59:29 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-11-18 13:59:29 +0100
commitdf3e30ed7e4e1af91dc60e145411267469a620b6 (patch)
treec1c6e8c4e108549a528efaa395c0842b287cac1d /gst/realmedia
parent2679b9432a732f8ce35a8aa7b7c8f6a2798150e1 (diff)
add parent to activate functions
Diffstat (limited to 'gst/realmedia')
-rw-r--r--gst/realmedia/rademux.c19
-rw-r--r--gst/realmedia/rdtmanager.c5
-rw-r--r--gst/realmedia/rmdemux.c19
3 files changed, 25 insertions, 18 deletions
diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c
index 7357e4b7..20c5526f 100644
--- a/gst/realmedia/rademux.c
+++ b/gst/realmedia/rademux.c
@@ -75,11 +75,12 @@ static gboolean gst_real_audio_demux_src_event (GstPad * pad,
static gboolean gst_real_audio_demux_src_query (GstPad * pad,
GstObject * parent, GstQuery * query);
static void gst_real_audio_demux_loop (GstRealAudioDemux * demux);
-static gboolean gst_real_audio_demux_sink_activate (GstPad * sinkpad);
+static gboolean gst_real_audio_demux_sink_activate (GstPad * sinkpad,
+ GstObject * parent);
static gboolean gst_real_audio_demux_sink_activate_push (GstPad * sinkpad,
- gboolean active);
+ GstObject * parent, gboolean active);
static gboolean gst_real_audio_demux_sink_activate_pull (GstPad * sinkpad,
- gboolean active);
+ GstObject * parent, gboolean active);
static void
gst_real_audio_demux_finalize (GObject * obj)
@@ -180,7 +181,7 @@ gst_real_audio_demux_init (GstRealAudioDemux * demux)
}
static gboolean
-gst_real_audio_demux_sink_activate (GstPad * sinkpad)
+gst_real_audio_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
{
GstQuery *query;
gboolean pull_mode;
@@ -208,11 +209,12 @@ activate_push:
}
static gboolean
-gst_real_audio_demux_sink_activate_push (GstPad * sinkpad, gboolean active)
+gst_real_audio_demux_sink_activate_push (GstPad * sinkpad, GstObject * parent,
+ gboolean active)
{
GstRealAudioDemux *demux;
- demux = GST_REAL_AUDIO_DEMUX (GST_OBJECT_PARENT (sinkpad));
+ demux = GST_REAL_AUDIO_DEMUX (parent);
demux->seekable = FALSE;
@@ -220,11 +222,12 @@ gst_real_audio_demux_sink_activate_push (GstPad * sinkpad, gboolean active)
}
static gboolean
-gst_real_audio_demux_sink_activate_pull (GstPad * sinkpad, gboolean active)
+gst_real_audio_demux_sink_activate_pull (GstPad * sinkpad, GstObject * parent,
+ gboolean active)
{
GstRealAudioDemux *demux;
- demux = GST_REAL_AUDIO_DEMUX (GST_OBJECT_PARENT (sinkpad));
+ demux = GST_REAL_AUDIO_DEMUX (parent);
if (active) {
demux->seekable = TRUE;
diff --git a/gst/realmedia/rdtmanager.c b/gst/realmedia/rdtmanager.c
index 8645a19c..00966f6b 100644
--- a/gst/realmedia/rdtmanager.c
+++ b/gst/realmedia/rdtmanager.c
@@ -123,7 +123,7 @@ static void gst_rdt_manager_get_property (GObject * object,
static gboolean gst_rdt_manager_query_src (GstPad * pad, GstObject * parent,
GstQuery * query);
static gboolean gst_rdt_manager_src_activate_push (GstPad * pad,
- gboolean active);
+ GstObject * parent, gboolean active);
static GstClock *gst_rdt_manager_provide_clock (GstElement * element);
static GstStateChangeReturn gst_rdt_manager_change_state (GstElement * element,
@@ -556,7 +556,8 @@ gst_rdt_manager_query_src (GstPad * pad, GstObject * parent, GstQuery * query)
}
static gboolean
-gst_rdt_manager_src_activate_push (GstPad * pad, gboolean active)
+gst_rdt_manager_src_activate_push (GstPad * pad, GstObject * parent,
+ gboolean active)
{
gboolean result = TRUE;
GstRDTManager *rdtmanager;
diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c
index 998021a1..05044bda 100644
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
@@ -137,11 +137,12 @@ static GstStateChangeReturn gst_rmdemux_change_state (GstElement * element,
static GstFlowReturn gst_rmdemux_chain (GstPad * pad, GstObject * parent,
GstBuffer * buffer);
static void gst_rmdemux_loop (GstPad * pad);
-static gboolean gst_rmdemux_sink_activate (GstPad * sinkpad);
+static gboolean gst_rmdemux_sink_activate (GstPad * sinkpad,
+ GstObject * parent);
static gboolean gst_rmdemux_sink_activate_push (GstPad * sinkpad,
- gboolean active);
+ GstObject * parent, gboolean active);
static gboolean gst_rmdemux_sink_activate_pull (GstPad * sinkpad,
- gboolean active);
+ GstObject * parent, gboolean active);
static gboolean gst_rmdemux_sink_event (GstPad * pad, GstObject * parent,
GstEvent * event);
static gboolean gst_rmdemux_src_event (GstPad * pad, GstObject * parent,
@@ -743,7 +744,7 @@ gst_rmdemux_change_state (GstElement * element, GstStateChange transition)
* pull based.
*/
static gboolean
-gst_rmdemux_sink_activate (GstPad * sinkpad)
+gst_rmdemux_sink_activate (GstPad * sinkpad, GstObject * parent)
{
GstQuery *query;
@@ -774,11 +775,12 @@ activate_push:
/* this function gets called when we activate ourselves in push mode.
* We cannot seek (ourselves) in the stream */
static gboolean
-gst_rmdemux_sink_activate_push (GstPad * pad, gboolean active)
+gst_rmdemux_sink_activate_push (GstPad * pad, GstObject * parent,
+ gboolean active)
{
GstRMDemux *rmdemux;
- rmdemux = GST_RMDEMUX (GST_PAD_PARENT (pad));
+ rmdemux = GST_RMDEMUX (parent);
GST_DEBUG_OBJECT (rmdemux, "activate_push");
@@ -791,11 +793,12 @@ gst_rmdemux_sink_activate_push (GstPad * pad, gboolean active)
* We can perform random access to the resource and we start a task
* to start reading */
static gboolean
-gst_rmdemux_sink_activate_pull (GstPad * pad, gboolean active)
+gst_rmdemux_sink_activate_pull (GstPad * pad, GstObject * parent,
+ gboolean active)
{
GstRMDemux *rmdemux;
- rmdemux = GST_RMDEMUX (GST_PAD_PARENT (pad));
+ rmdemux = GST_RMDEMUX (parent);
GST_DEBUG_OBJECT (rmdemux, "activate_pull");