diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-06-08 15:54:42 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-06-08 15:54:42 +0200 |
commit | a1948e34d29febd453c3c8db69d374f8592ed2e5 (patch) | |
tree | 4533e972cf96a82f1655b17ecc9f3a38c95d793b /gst | |
parent | 54a58e6c3d95cebb50fd04fe4bd4af16a698643c (diff) | |
download | gstreamer-plugins-good-a1948e34d29febd453c3c8db69d374f8592ed2e5.tar.gz |
elements: Use gst_pad_set_caps() instead of manual event fiddling
Diffstat (limited to 'gst')
-rw-r--r-- | gst/avi/gstavidemux.c | 2 | ||||
-rw-r--r-- | gst/goom/gstgoom.c | 2 | ||||
-rw-r--r-- | gst/goom2k1/gstgoom.c | 2 | ||||
-rw-r--r-- | gst/monoscope/gstmonoscope.c | 2 | ||||
-rw-r--r-- | gst/rtsp/gstrtpdec.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index dddec0056..7863a1258 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -2299,7 +2299,7 @@ gst_avi_demux_parse_stream (GstAviDemux * avi, GstBuffer * buf) avi->num_streams++; gst_pad_set_active (pad, TRUE); - gst_pad_push_event (pad, gst_event_new_caps (caps)); + gst_pad_set_caps (pad, caps); gst_caps_unref (caps); /* make tags */ diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index 1ffe7c80b..e6ecd721c 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -235,7 +235,7 @@ gst_goom_src_setcaps (GstGoom * goom, GstCaps * caps) GST_DEBUG_OBJECT (goom, "dimension %dx%d, framerate %d/%d, spf %d", goom->width, goom->height, goom->fps_n, goom->fps_d, goom->spf); - res = gst_pad_push_event (goom->srcpad, gst_event_new_caps (caps)); + res = gst_pad_set_caps (goom->srcpad, caps); return res; diff --git a/gst/goom2k1/gstgoom.c b/gst/goom2k1/gstgoom.c index 72bad75fe..e5d967124 100644 --- a/gst/goom2k1/gstgoom.c +++ b/gst/goom2k1/gstgoom.c @@ -234,7 +234,7 @@ gst_goom_src_setcaps (GstGoom * goom, GstCaps * caps) GST_DEBUG_OBJECT (goom, "dimension %dx%d, framerate %d/%d, spf %d", goom->width, goom->height, goom->fps_n, goom->fps_d, goom->spf); - return gst_pad_push_event (goom->srcpad, gst_event_new_caps (caps)); + return gst_pad_set_caps (goom->srcpad, caps); /* ERRORS */ error: diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index 6850a24ee..3bf1fda8c 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -214,7 +214,7 @@ gst_monoscope_src_setcaps (GstMonoscope * monoscope, GstCaps * caps) monoscope->visstate = monoscope_init (monoscope->width, monoscope->height); - res = gst_pad_push_event (monoscope->srcpad, gst_event_new_caps (caps)); + res = gst_pad_set_caps (monoscope->srcpad, caps); return res && (monoscope->visstate != NULL); } diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c index 1ec0b9352..70f037247 100644 --- a/gst/rtsp/gstrtpdec.c +++ b/gst/rtsp/gstrtpdec.c @@ -521,7 +521,7 @@ gst_rtp_dec_chain_rtp (GstPad * pad, GstObject * parent, GstBuffer * buffer) session->recv_rtp_src = gst_pad_new_from_template (templ, name); g_free (name); - gst_pad_push_event (session->recv_rtp_src, gst_event_new_caps (caps)); + gst_pad_set_caps (session->recv_rtp_src, caps); gst_pad_set_element_private (session->recv_rtp_src, session); gst_pad_set_query_function (session->recv_rtp_src, gst_rtp_dec_query_src); |