Commit 5cb15dcd authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: more user-friendly error messages

parent 5eec5281
...@@ -1964,14 +1964,14 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS ...@@ -1964,14 +1964,14 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
EDocType doc_type = GetChild<EDocType>(*static_cast<EbmlHead*>(p_l0)); EDocType doc_type = GetChild<EDocType>(*static_cast<EbmlHead*>(p_l0));
if (std::string(doc_type) != "matroska") if (std::string(doc_type) != "matroska")
{ {
msg_Err( p_demux, "Not a Matroska file : %s ", std::string(doc_type).c_str()); msg_Err( p_demux, "Not a Matroska file : DocType = %s ", std::string(doc_type).c_str());
return NULL; return NULL;
} }
EDocTypeReadVersion doc_read_version = GetChild<EDocTypeReadVersion>(*static_cast<EbmlHead*>(p_l0)); EDocTypeReadVersion doc_read_version = GetChild<EDocTypeReadVersion>(*static_cast<EbmlHead*>(p_l0));
if (uint64(doc_read_version) != 1) if (uint64(doc_read_version) != 1)
{ {
msg_Err( p_demux, "Matroska Read version not matching : "I64Fd, uint64(doc_read_version)); msg_Err( p_demux, "This matroska file is needs version "I64Fd" and this VLC only supports version 1", uint64(doc_read_version));
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment