summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpsrc.c
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/gstudpsrc.c
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/gstudpsrc.c')
-rw-r--r--gst/udp/gstudpsrc.c8
1 files changed, 4 insertions, 4 deletions
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);
}