diff options
-rw-r--r-- | chromecast/media/cma/test/media_component_device_feeder_for_test.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chromecast/media/cma/test/media_component_device_feeder_for_test.cc b/chromecast/media/cma/test/media_component_device_feeder_for_test.cc index 313bd8c..84cc3da 100644 --- a/chromecast/media/cma/test/media_component_device_feeder_for_test.cc +++ b/chromecast/media/cma/test/media_component_device_feeder_for_test.cc @@ -13,6 +13,7 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop/message_loop.h" +#include "base/single_thread_task_runner.h" #include "base/thread_task_runner_handle.h" #include "base/time/time.h" #include "chromecast/media/base/decrypt_context.h" @@ -24,7 +25,6 @@ #include "chromecast/media/cma/base/decoder_buffer_base.h" #include "chromecast/media/cma/test/frame_segmenter_for_test.h" #include "media/base/audio_decoder_config.h" -#include "media/base/bind_to_current_loop.h" #include "media/base/buffers.h" #include "media/base/decoder_buffer.h" #include "media/base/video_decoder_config.h" @@ -78,11 +78,12 @@ void MediaComponentDeviceFeederForTest::Feed() { DCHECK(!frames_.empty()); scoped_refptr<DecoderBufferBase> buffer = frames_.front(); - MediaComponentDevice::FrameStatus status = media_component_device_->PushFrame( - scoped_refptr<DecryptContext>(), buffer, - ::media::BindToCurrentLoop( + MediaComponentDevice::FrameStatus status = + media_component_device_->PushFrame( + scoped_refptr<DecryptContext>(), + buffer, base::Bind(&MediaComponentDeviceFeederForTest::OnFramePushed, - base::Unretained(this)))); + base::Unretained(this))); EXPECT_NE(status, MediaComponentDevice::kFrameFailed); frames_.pop_front(); |