mpegtsmux: Post error on the bus if no mapping is found

This is more useful/visible

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7707>
This commit is contained in:
Edward Hervey 2024-11-12 09:01:49 +01:00
parent 244b00ac08
commit 6ba70f5da8

View file

@ -945,7 +945,10 @@ gst_base_ts_mux_create_or_update_stream (GstBaseTsMux * mux,
} }
if (st == TSMUX_ST_RESERVED) { if (st == TSMUX_ST_RESERVED) {
GST_ERROR_OBJECT (ts_pad, "Failed to determine stream type"); GST_ELEMENT_ERROR (mux, STREAM, MUX,
("Failed to determine stream type or mapping is not supported"),
("If you're using an experimental or non-standard mapping you may have to "
"set the enable-custom-mappings property to TRUE."));
goto error; goto error;
} }