From 6ba70f5da827b90285ba68d2ebaf7d2d4f4748d2 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 12 Nov 2024 09:01:49 +0100 Subject: [PATCH] mpegtsmux: Post error on the bus if no mapping is found This is more useful/visible Part-of: --- subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c index eec5025ee2..0a52836e55 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c @@ -945,7 +945,10 @@ gst_base_ts_mux_create_or_update_stream (GstBaseTsMux * mux, } 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; }