+2008-12-01 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
+ * gst/mxf/mxfdemux.c: (gst_mxf_demux_choose_package):
+ If the preface references a primary package use this as the default
+ playback package unless one was specified by the "package" property.
+ If there's no preface primary package still try to use the first
+ material package.
+
2008-11-30 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/mxf/mxfdemux.c:
MXFMetadataEssenceContainerData, i);
for (j = 0; j < demux->content_storage.n_essence_container_data; j++) {
- if (mxf_ul_is_equal (&demux->
- content_storage.essence_container_data_uids[j],
- &data->instance_uid)) {
+ if (mxf_ul_is_equal (&demux->content_storage.
+ essence_container_data_uids[j], &data->instance_uid)) {
demux->content_storage.essence_container_data[j] = data;
break;
}
GST_WARNING_OBJECT (demux,
"Current package not found, choosing the first best");
+ if (demux->preface.primary_package)
+ ret = demux->preface.primary_package;
+ if (ret && (ret->type == MXF_METADATA_GENERIC_PACKAGE_TOP_LEVEL_SOURCE
+ || ret->type == MXF_METADATA_GENERIC_PACKAGE_MATERIAL))
+ return ret;
+
if (!demux->material_package) {
GST_ERROR_OBJECT (demux, "No material package");
return NULL;