From d6cc68a9f7de93b299e9ba929b5de501468cf05b Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 22 Mar 2012 18:27:30 +0100 Subject: [PATCH] audioparsers: use sink pad template caps rather than src --- gst/audioparsers/gstaacparse.c | 2 +- gst/audioparsers/gstac3parse.c | 2 +- gst/audioparsers/gstamrparse.c | 2 +- gst/audioparsers/gstdcaparse.c | 2 +- gst/audioparsers/gstflacparse.c | 2 +- gst/audioparsers/gstmpegaudioparse.c | 2 +- gst/audioparsers/gstwavpackparse.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index 15a8be7..b22524d 100644 --- a/gst/audioparsers/gstaacparse.c +++ b/gst/audioparsers/gstaacparse.c @@ -1093,7 +1093,7 @@ gst_aac_parse_sink_getcaps (GstBaseParse * parse, GstCaps * filter) /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)), + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)), peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { guint i, n; diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index d5d8551..b92ad7f 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -697,7 +697,7 @@ gst_ac3_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; /* FIXME: handle filter */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)), + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)), peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { guint i, n; diff --git a/gst/audioparsers/gstamrparse.c b/gst/audioparsers/gstamrparse.c index bf8f37e..65caf28 100644 --- a/gst/audioparsers/gstamrparse.c +++ b/gst/audioparsers/gstamrparse.c @@ -370,7 +370,7 @@ gst_amr_parse_sink_getcaps (GstBaseParse * parse, GstCaps * filter) /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)); + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c index 42565c2..e3a97f4 100644 --- a/gst/audioparsers/gstdcaparse.c +++ b/gst/audioparsers/gstdcaparse.c @@ -447,7 +447,7 @@ gst_dca_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)); + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index f50a057..027597a 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1550,7 +1550,7 @@ gst_flac_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)); + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { diff --git a/gst/audioparsers/gstmpegaudioparse.c b/gst/audioparsers/gstmpegaudioparse.c index 1d5d276..267c8d9 100644 --- a/gst/audioparsers/gstmpegaudioparse.c +++ b/gst/audioparsers/gstmpegaudioparse.c @@ -1405,7 +1405,7 @@ gst_mpeg_audio_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)); + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { diff --git a/gst/audioparsers/gstwavpackparse.c b/gst/audioparsers/gstwavpackparse.c index 875c03a..e3d9a92 100644 --- a/gst/audioparsers/gstwavpackparse.c +++ b/gst/audioparsers/gstwavpackparse.c @@ -611,7 +611,7 @@ gst_wavpack_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; /* FIXME: handle filter caps */ - templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)); + templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); if (peercaps) { -- 2.7.4