diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-05-14 00:23:35 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-05-14 00:25:09 +0100 |
commit | f8d63c5ad929dccf832255efdaf0d328a274ef23 (patch) | |
tree | 6db6412f14d4f0212809385264160cfafbeb9af0 /gst/mxf/mxfdemux.c | |
parent | 99d326f79590867c9a79f5468e2f8453bcdd3da8 (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.c | 19 |
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; |