| Index: services/media/factory_service/media_sink_impl.cc
|
| diff --git a/services/media/factory_service/media_sink_impl.cc b/services/media/factory_service/media_sink_impl.cc
|
| index e840767cf9a0716983ded111839c70cd310aa905..0e427692694900c1e94134bb16a27fd1d2c7cd94 100644
|
| --- a/services/media/factory_service/media_sink_impl.cc
|
| +++ b/services/media/factory_service/media_sink_impl.cc
|
| @@ -74,6 +74,15 @@ MediaSinkImpl::MediaSinkImpl(const String& destination_url,
|
| }
|
| });
|
|
|
| + // TODO(dalesat): Temporary, remove.
|
| + if (destination_url == "nowhere") {
|
| + // Throwing away the content.
|
| + graph_.ConnectParts(consumer_ref, producer_ref);
|
| + graph_.Prepare();
|
| + ready_.Occur();
|
| + return;
|
| + }
|
| +
|
| if (destination_url != "mojo:audio_server") {
|
| LOG(ERROR) << "mojo:audio_server is the only supported destination";
|
| if (binding_.is_bound()) {
|
| @@ -161,7 +170,11 @@ void MediaSinkImpl::MaybeSetRate() {
|
| return;
|
| }
|
|
|
| - DCHECK(rate_control_);
|
| + if (!rate_control_) {
|
| + rate_ = target_rate_;
|
| + status_publisher_.SendUpdates();
|
| + return;
|
| + }
|
|
|
| // Desired rate in frames per second.
|
| LinearTransform::Ratio rate_frames_per_second(
|
|
|