mpegtsmux: Don't assume English for ISO-639 language descriptor

Previously, "en" (should have actually been "eng") was assumed
for the ISO-639 language descriptor if no language was explicitely given.
Neither ETSI EN 300 468 nor ATSC A/52 mandate for a language descriptor,
so we should simply not set it, if it's unknown.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1386>
This commit is contained in:
Andreas Frisch 2020-06-30 13:40:28 +02:00 committed by Andreas Frisch
parent 46cc64e09f
commit 0e075b4dbf

View file

@ -709,7 +709,7 @@ tsmux_create_stream (TsMux * mux, guint stream_type, guint16 pid,
strncpy (stream->language, language, 4);
stream->language[3] = 0;
} else {
strcpy (stream->language, "eng");
stream->language[0] = 0;
}
return stream;