diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-04-15 01:22:23 +0300 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2020-04-15 01:22:23 +0300 |
commit | e10f88da5005d11f5e9a72e700c7df8db3d18730 (patch) | |
tree | d45443d87ad7056a2608192d80b5ef51ddcca4cd /audio | |
parent | f1e3212477a1fcc1b7783fc19d920db2b06c4aa5 (diff) |
transcribe: fix exception packet detection
Diffstat (limited to 'audio')
-rw-r--r-- | audio/transcribe/src/packet.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/transcribe/src/packet.rs b/audio/transcribe/src/packet.rs index 955ad0448..18281617c 100644 --- a/audio/transcribe/src/packet.rs +++ b/audio/transcribe/src/packet.rs @@ -136,7 +136,7 @@ fn parse_header(input: &[u8]) -> IResult<&[u8], Header> { pub fn packet_is_exception(packet: &Packet) -> bool { for header in &packet.headers { - if header.name == ":message-type" && header.value_type == 7 { + if header.name == ":message-type" && header.value == "exception" { return true; } } |