mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
mxfdemux: post error message when erroring out on unsupported essence wrapping
This commit is contained in:
parent
99d326f795
commit
f8d63c5ad9
1 changed files with 12 additions and 5 deletions
|
@ -861,12 +861,19 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux)
|
|||
caps = NULL;
|
||||
}
|
||||
|
||||
if (etrack->handler != NULL) {
|
||||
MXFEssenceWrapping track_wrapping;
|
||||
|
||||
if (etrack->handler
|
||||
&& etrack->handler->get_track_wrapping (track) !=
|
||||
MXF_ESSENCE_WRAPPING_FRAME_WRAPPING) {
|
||||
GST_ERROR_OBJECT (demux, "Only frame wrapping currently supported");
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue