From 906996fe29c1599c492b5699556ec785463f0524 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Sun, 26 Jul 2015 21:28:48 +1000 Subject: [PATCH] Bug 1185886: P1. Ensure DrainComplete() is called when draining. r=cpearce If no samples were ever passed to the H264 wrapper, no decoder would have been created. --- dom/media/platforms/wrappers/H264Converter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/media/platforms/wrappers/H264Converter.cpp b/dom/media/platforms/wrappers/H264Converter.cpp index 9defd2ac52f2..c80d7f71754d 100644 --- a/dom/media/platforms/wrappers/H264Converter.cpp +++ b/dom/media/platforms/wrappers/H264Converter.cpp @@ -95,6 +95,7 @@ H264Converter::Drain() if (mDecoder) { return mDecoder->Drain(); } + mCallback->DrainComplete(); return mLastError; }