audioparsers: intersect downstream allowed peer caps with sink pad template
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Mar 2012 15:10:33 +0000 (16:10 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Mar 2012 15:11:38 +0000 (16:11 +0100)
gst/audioparsers/gstaacparse.c
gst/audioparsers/gstac3parse.c
gst/audioparsers/gstamrparse.c
gst/audioparsers/gstdcaparse.c
gst/audioparsers/gstflacparse.c
gst/audioparsers/gstmpegaudioparse.c
gst/audioparsers/gstwavpackparse.c

index f1e4de2..57f5aff 100644 (file)
@@ -1118,7 +1118,7 @@ gst_aac_parse_sink_getcaps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index 6fa4658..0777ee2 100644 (file)
@@ -688,7 +688,7 @@ gst_ac3_parse_get_sink_caps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index 8f6ef94..128efa1 100644 (file)
@@ -418,7 +418,7 @@ gst_amr_parse_sink_getcaps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index c34d83e..641bd4d 100644 (file)
@@ -473,7 +473,7 @@ gst_dca_parse_get_sink_caps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index ed4e733..b331f66 100644 (file)
@@ -1474,7 +1474,7 @@ gst_flac_parse_get_sink_caps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index 0fd7ccc..43c330c 100644 (file)
@@ -1430,7 +1430,7 @@ gst_mpeg_audio_parse_get_sink_caps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {
index 41e73a6..18c2fc2 100644 (file)
@@ -635,7 +635,7 @@ gst_wavpack_parse_get_sink_caps (GstBaseParse * parse)
 
     res =
         gst_caps_intersect_full (peercaps,
-        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SRC_PAD (parse)),
+        gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)),
         GST_CAPS_INTERSECT_FIRST);
     gst_caps_unref (peercaps);
   } else {