summaryrefslogtreecommitdiff
path: root/gst/mxf/mxfdemux.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-05-14 00:23:35 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-05-14 00:25:09 +0100
commitf8d63c5ad929dccf832255efdaf0d328a274ef23 (patch)
tree6db6412f14d4f0212809385264160cfafbeb9af0 /gst/mxf/mxfdemux.c
parent99d326f79590867c9a79f5468e2f8453bcdd3da8 (diff)
mxfdemux: post error message when erroring out on unsupported essence wrapping
Diffstat (limited to 'gst/mxf/mxfdemux.c')
-rw-r--r--gst/mxf/mxfdemux.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index c2ee74148..eb7fd4aca 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -861,12 +861,19 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux)
caps = NULL;
}
-
- if (etrack->handler
- && etrack->handler->get_track_wrapping (track) !=
- MXF_ESSENCE_WRAPPING_FRAME_WRAPPING) {
- GST_ERROR_OBJECT (demux, "Only frame wrapping currently supported");
- return GST_FLOW_ERROR;
+ if (etrack->handler != NULL) {
+ MXFEssenceWrapping track_wrapping;
+
+ track_wrapping = etrack->handler->get_track_wrapping (track);
+ if (track_wrapping == MXF_ESSENCE_WRAPPING_CLIP_WRAPPING) {
+ GST_ELEMENT_ERROR (demux, STREAM, NOT_IMPLEMENTED, (NULL),
+ ("Clip essence wrapping is not implemented yet."));
+ return GST_FLOW_ERROR;
+ } else if (track_wrapping == MXF_ESSENCE_WRAPPING_CUSTOM_WRAPPING) {
+ GST_ELEMENT_ERROR (demux, STREAM, NOT_IMPLEMENTED, (NULL),
+ ("Custom essence wrappings are not supported."));
+ return GST_FLOW_ERROR;
+ }
}
etrack->source_package = package;