Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: media/filters/ffmpeg_demuxer.cc

Issue 2770293002: Detect HLS from demuxing results (Closed)
Patch Set: Minor changes in comments Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/webmediaplayer_util.cc ('k') | media/filters/ffmpeg_glue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.cc
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index e8088fb7c80606fbe165644c69a56a552c31ca4f..2b7ea66f06a054d7d6e7432205ac17f6892817e9 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -26,6 +26,7 @@
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
+#include "build/build_config.h"
#include "media/audio/sample_rates.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/decrypt_config.h"
@@ -1202,6 +1203,15 @@ void FFmpegDemuxer::OnOpenContextDone(const PipelineStatusCB& status_cb,
return;
}
+#if defined(OS_ANDROID)
+ if (glue_->detected_hls()) {
+ MEDIA_LOG(INFO, media_log_)
+ << GetDisplayName() << ": detected HLS manifest";
+ status_cb.Run(DEMUXER_ERROR_DETECTED_HLS);
+ return;
+ }
+#endif
+
if (!result) {
MEDIA_LOG(ERROR, media_log_) << GetDisplayName() << ": open context failed";
status_cb.Run(DEMUXER_ERROR_COULD_NOT_OPEN);
« no previous file with comments | « media/blink/webmediaplayer_util.cc ('k') | media/filters/ffmpeg_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698