oggdemux: only create unknown caps once

This commit is contained in:
Wim Taymans 2012-03-13 12:40:11 +01:00
parent 4e1ed6f649
commit 867e635cde

View file

@ -784,7 +784,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
if (!pad->have_type) {
pad->have_type = gst_ogg_stream_setup_map (&pad->map, packet);
if (!pad->have_type) {
if (!pad->have_type && !pad->map.caps) {
pad->map.caps = gst_caps_new_empty_simple ("application/x-unknown");
}
if (pad->map.is_skeleton) {