From 07c4b4f3bd8a6216c426c0b1d61ff94ea10a9efb Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 28 Sep 2016 14:55:19 -0700 Subject: [PATCH] Drop the DCHECK for language size 3 Language tags can have subtags, such as "por-BR". While the base tag should be 3 characters, the entire tag can be longer. Rather than parse out the base tag and check that it is size 3 without the subtag, we can just trust the ISO tag converter to do the right thing. Change-Id: I2a186b5c8db0f373ee82ef68245ecc33cb068581 --- packager/app/stream_descriptor.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/packager/app/stream_descriptor.cc b/packager/app/stream_descriptor.cc index bdf95546bf..b36e5d92c7 100644 --- a/packager/app/stream_descriptor.cc +++ b/packager/app/stream_descriptor.cc @@ -117,7 +117,6 @@ bool InsertStreamDescriptor(const std::string& descriptor_string, LOG(ERROR) << "Unknown/invalid language specified: " << iter->second; return false; } - DCHECK_EQ(3u, language.size()); descriptor.language = language; break; }