summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
committerAndy Wingo <wingo@pobox.com>2003-10-08 16:08:18 +0000
commitf2d5cae8daade402e9d74a829d2b87283167aaa7 (patch)
treecbb13b82d43fa41ffaf6c93973e80c2f620ebf8e /gst/udp
parent9246e543319c072c52fffa51259a2cf927c8dd43 (diff)
/GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Original commit message from CVS: /GstBuffer/GstData/ in the API where you can pass events. Fix the plugins to deal with that. Fixes #113488.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstudpsink.c5
-rw-r--r--gst/udp/gstudpsrc.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c
index 4953061d..cae46e18 100644
--- a/gst/udp/gstudpsink.c
+++ b/gst/udp/gstudpsink.c
@@ -75,7 +75,7 @@ static void gst_udpsink_init (GstUDPSink *udpsink);
static void gst_udpsink_set_clock (GstElement *element, GstClock *clock);
-static void gst_udpsink_chain (GstPad *pad,GstBuffer *buf);
+static void gst_udpsink_chain (GstPad *pad,GstData *_data);
static GstElementStateReturn gst_udpsink_change_state (GstElement *element);
static void gst_udpsink_set_property (GObject *object, guint prop_id,
@@ -257,8 +257,9 @@ gst_udpsink_init (GstUDPSink *udpsink)
}
static void
-gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
+gst_udpsink_chain (GstPad *pad, GstData *_data)
{
+ GstBuffer *buf = GST_BUFFER (_data);
GstUDPSink *udpsink;
guint tolen, i;
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 82023c3c..d332b1c3 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -72,7 +72,7 @@ gst_udpsrc_control_get_type(void) {
static void gst_udpsrc_class_init (GstUDPSrc *klass);
static void gst_udpsrc_init (GstUDPSrc *udpsrc);
-static GstBuffer* gst_udpsrc_get (GstPad *pad);
+static GstData* gst_udpsrc_get (GstPad *pad);
static GstElementStateReturn
gst_udpsrc_change_state (GstElement *element);
@@ -166,7 +166,7 @@ gst_udpsrc_init (GstUDPSrc *udpsrc)
udpsrc->first_buf = TRUE;
}
-static GstBuffer*
+static GstData*
gst_udpsrc_get (GstPad *pad)
{
GstUDPSrc *udpsrc;
@@ -254,7 +254,7 @@ gst_udpsrc_get (GstPad *pad)
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME,
current_time, NULL);
- gst_pad_push (udpsrc->srcpad, GST_BUFFER (discont));
+ gst_pad_push (udpsrc->srcpad, GST_DATA (discont));
}
udpsrc->first_buf = FALSE;
@@ -283,7 +283,7 @@ gst_udpsrc_get (GstPad *pad)
perror ("select");
outbuf = NULL;
}
- return outbuf;
+ return GST_DATA (outbuf);
}