ogg: Update for the libgstriff API changes

Still needs to handle the raw audio channel reordering.
This commit is contained in:
Sebastian Dröge 2011-12-31 14:32:45 +01:00
parent 8cd8965e19
commit 40938b8a89
2 changed files with 6 additions and 2 deletions

View file

@ -1446,7 +1446,9 @@ setup_ogmaudio_mapper (GstOggStream * pad, ogg_packet * packet)
fstr = g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
GST_DEBUG ("fourcc: %s", fstr);
pad->caps = gst_riff_create_audio_caps (fourcc, NULL, NULL, NULL, NULL, NULL);
/* FIXME: Need to do something with the reorder map */
pad->caps =
gst_riff_create_audio_caps (fourcc, NULL, NULL, NULL, NULL, NULL, NULL);
GST_LOG ("sample rate: %d", pad->granulerate_n);
if (pad->granulerate_n == 0)

View file

@ -540,8 +540,10 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size)
GST_WARNING_OBJECT (ogm, "cannot parse subtype %s", ogm->hdr.subtype);
}
/* FIXME: Need to do something with the reorder map */
caps =
gst_riff_create_audio_caps (codec_id, NULL, NULL, NULL, NULL, NULL);
gst_riff_create_audio_caps (codec_id, NULL, NULL, NULL, NULL, NULL,
NULL);
if (caps == NULL) {
GST_WARNING_OBJECT (ogm, "no audio caps for codec %u found", codec_id);