summaryrefslogtreecommitdiffstats
path: root/gst/mxf/mxfparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/mxf/mxfparse.c')
-rw-r--r--gst/mxf/mxfparse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/mxf/mxfparse.c b/gst/mxf/mxfparse.c
index 0c836912..91fbda57 100644
--- a/gst/mxf/mxfparse.c
+++ b/gst/mxf/mxfparse.c
@@ -868,9 +868,12 @@ mxf_index_table_segment_parse (const MXFUL * key,
break;
}
default:
- if (!mxf_local_tag_add_to_hash_table (primer, tag, tag_data, tag_size,
- &segment->other_tags))
+ if (!primer->mappings) {
+ GST_WARNING ("No valid primer pack for this partition");
+ } else if (!mxf_local_tag_add_to_hash_table (primer, tag, tag_data,
+ tag_size, &segment->other_tags)) {
goto error;
+ }
break;
}