Skip to content

Commit

Permalink
web/libav/probe: suppress fail warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Sep 6, 2024
1 parent 9d3789a commit cdcf8b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/lib/libav/probe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ async function probeSingleAudio(config: AudioEncoderConfig) {
return { supported };
}
}
} catch(e) { console.warn('audio native probe fail', e) }
} catch(e) { /* console.warn('audio native probe fail', e) */ }

try {
const { supported } = await LibAVPolyfill.AudioEncoder.isConfigSupported(config);
if (supported) {
return { supported, slow: true }
}
} catch(e) { console.warn('audio polyfill probe fail', e) }
} catch(e) { /* console.warn('audio polyfill probe fail', e) */ }

return { supported: false }
}
Expand All @@ -45,14 +45,14 @@ async function probeSingleVideo(config: VideoEncoderConfig) {
return { supported };
}
}
} catch(e) { console.warn('video native probe fail', e) }
} catch(e) { /* console.warn('video native probe fail', e) */ }

try {
const { supported } = await LibAVPolyfill.VideoEncoder.isConfigSupported(config);
if (supported) {
return { supported, slow: true }
}
} catch(e) { console.warn('video polyfill probe fail', e) }
} catch(e) { /* console.warn('video polyfill probe fail', e) */ }

return { supported: false }
}
Expand Down

0 comments on commit cdcf8b9

Please sign in to comment.