caps = gst_discoverer_stream_info_get_caps (sinfo);
+ /* Should unify this with copy_and_clean_caps() */
s = gst_caps_get_structure (caps, 0);
if (gst_structure_has_field (s, "codec_data")
- || gst_structure_has_field (s, "streamheader")) {
+ || gst_structure_has_field (s, "streamheader")
+ || gst_structure_has_field (s, "parsed")
+ || gst_structure_has_field (s, "framed")
+ || gst_structure_has_field (s, "stream-format")
+ || gst_structure_has_field (s, "alignment")) {
caps = gst_caps_make_writable (caps);
s = gst_caps_get_structure (caps, 0);
gst_structure_remove_field (s, "codec_data");
gst_structure_remove_field (s, "streamheader");
+ gst_structure_remove_field (s, "parsed");
+ gst_structure_remove_field (s, "framed");
+ gst_structure_remove_field (s, "stream-format");
+ gst_structure_remove_field (s, "alignment");
}
GST_LOG ("Stream: %" GST_PTR_FORMAT "\n", caps);