File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -288,41 +288,41 @@ bool CISCO_PlaybackSpeedCommand::DoesPost() const
288288
289289void CISCO_PlaybackSpeedCommand::ExecuteGet (Response * const response)
290290{
291- bool mute ;
291+ double speed ;
292292 Error* error = NULL ;
293293
294294 session_->RunSessionTask (base::Bind (
295- &ViewCmdExecutor::GetMute ,
295+ &ViewCmdExecutor::GetPlaybackSpeed ,
296296 base::Unretained (executor_.get ()),
297297 element,
298- &mute ,
298+ &speed ,
299299 &error));
300300
301301 if (error) {
302302 response->SetError (error);
303303 return ;
304304 }
305305
306- Value* value = Value::CreateBooleanValue (mute );
306+ Value* value = Value::CreateBooleanValue (speed );
307307 response->SetValue (value);
308308}
309309
310310void CISCO_PlaybackSpeedCommand::ExecutePost (Response * const response)
311311{
312- bool mute ;
313- if (!GetBooleanParameter ( " mute " , &mute )) {
312+ double speed ;
313+ if (!GetDoubleParameter ( " speed " , &speed )) {
314314 response->SetError (new Error (
315- kBadRequest , " 'mute ' is missing or invalid" ));
315+ kBadRequest , " 'speed ' is missing or invalid" ));
316316 return ;
317317 }
318318
319319 Error* error = NULL ;
320320
321321 session_->RunSessionTask (base::Bind (
322- &ViewCmdExecutor::SetMute ,
322+ &ViewCmdExecutor::SetPlaybackSpeed ,
323323 base::Unretained (executor_.get ()),
324324 element,
325- mute ,
325+ speed ,
326326 &error));
327327
328328 if (error)
You can’t perform that action at this time.
0 commit comments