summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorjrummell@chromium.org <jrummell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 18:45:45 +0000
committerjrummell@chromium.org <jrummell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 18:45:45 +0000
commit2f7b6fcfc7a0ea20a2be3cb02fce98649a3e9fc9 (patch)
tree662e4a4994d79b7263a3083e2bc379697923e858 /media
parentac36a883fef95836c88cf513b873b004cbd02d38 (diff)
downloadchromium_src-2f7b6fcfc7a0ea20a2be3cb02fce98649a3e9fc9.zip
chromium_src-2f7b6fcfc7a0ea20a2be3cb02fce98649a3e9fc9.tar.gz
chromium_src-2f7b6fcfc7a0ea20a2be3cb02fce98649a3e9fc9.tar.bz2
Add UMA tracing for unsupported codecs
BUG= Review URL: https://chromiumcodereview.appspot.com/13493018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_demuxer.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index fec580a..0221eb7 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -14,6 +14,7 @@
#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
+#include "base/metrics/sparse_histogram.h"
#include "base/stl_util.h"
#include "base/string_util.h"
#include "base/task_runner_util.h"
@@ -465,6 +466,9 @@ void FFmpegDemuxer::OnFindStreamInfoDone(const PipelineStatusCB& status_cb,
if (codec_type == AVMEDIA_TYPE_AUDIO) {
if (found_audio_stream)
continue;
+ // Log the codec detected, whether it is supported or not.
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Media.DetectedAudioCodec",
+ codec_context->codec_id);
// Ensure the codec is supported.
if (CodecIDToAudioCodec(codec_context->codec_id) == kUnknownAudioCodec)
continue;
@@ -472,6 +476,9 @@ void FFmpegDemuxer::OnFindStreamInfoDone(const PipelineStatusCB& status_cb,
} else if (codec_type == AVMEDIA_TYPE_VIDEO) {
if (found_video_stream)
continue;
+ // Log the codec detected, whether it is supported or not.
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Media.DetectedVideoCodec",
+ codec_context->codec_id);
// Ensure the codec is supported.
if (CodecIDToVideoCodec(codec_context->codec_id) == kUnknownVideoCodec)
continue;