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 f1e4de2f161f3b3dce561db8df1336fb854001c1..57f5affff5f56e56f5ba22d681314223482461d0 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 6fa46584c4fd260a47f1e1df8ba597150951ed73..0777ee277a569a8af724de5e514adcf65d893e46 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 8f6ef9451659e7080ac5c2dd81506c04ca269711..128efa175cc9fa77320b729d3b4f1d911eec1646 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 c34d83e81a0072f3403589817f21d78f99fe9e67..641bd4d1fbbc3741f356736c824d61ff363aaf78 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 ed4e733eecc3174bf6c9ff3c05eb5986f687086b..b331f66a6731c86bb5146a3854d46db0181038ff 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 0fd7cccb311ffece40b75773af5de586898fd49a..43c330cc27fb123fee97b27b5173dc4aa0d1812c 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 41e73a66f6a6d756b032eab2ea0d57cc5f919618..18c2fc2c507e4f3fe5e60b45e39932479cc2e726 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 {