@@ -205,13 +205,13 @@ impl MediaPlaybackCluster {
205
205
Attributes :: CurrentState as u16 ,
206
206
AttrValue :: Uint8 ( PlaybackState :: Playing as u8 ) ,
207
207
) ?;
208
- Err ( IMStatusCode :: Sucess )
208
+ Err ( IMStatusCode :: Success )
209
209
}
210
210
211
211
fn _set_duration ( & mut self , duration : u64 ) -> Result < ( ) , IMStatusCode > {
212
212
self . base
213
213
. write_attribute_raw ( Attributes :: Duration as u16 , AttrValue :: Uint64 ( duration) ) ?;
214
- Err ( IMStatusCode :: Sucess )
214
+ Err ( IMStatusCode :: Success )
215
215
}
216
216
217
217
// When rewinding / changing stream / etc we need to change absolute position and updateAt
@@ -221,7 +221,7 @@ impl MediaPlaybackCluster {
221
221
self . sampled_position . position = new_pos;
222
222
self . sampled_position . updated_at = now;
223
223
224
- Err ( IMStatusCode :: Sucess )
224
+ Err ( IMStatusCode :: Success )
225
225
}
226
226
227
227
fn enocde_sampled_position ( & self , tag : TagType , tw : & mut TLVWriter ) {
@@ -242,7 +242,7 @@ impl MediaPlaybackCluster {
242
242
243
243
self . run_callback ( Commands :: Play ) ;
244
244
self . send_playback_response ( CommandStatus :: Success , cmd_req) ;
245
- Err ( IMStatusCode :: Sucess )
245
+ Err ( IMStatusCode :: Success )
246
246
}
247
247
fn handle_pause ( & mut self , cmd_req : & mut CommandReq ) -> Result < ( ) , IMStatusCode > {
248
248
self . base . write_attribute_raw (
@@ -252,7 +252,7 @@ impl MediaPlaybackCluster {
252
252
253
253
self . run_callback ( Commands :: Pause ) ;
254
254
self . send_playback_response ( CommandStatus :: Success , cmd_req) ;
255
- Err ( IMStatusCode :: Sucess )
255
+ Err ( IMStatusCode :: Success )
256
256
}
257
257
fn handle_stop ( & mut self , cmd_req : & mut CommandReq ) -> Result < ( ) , IMStatusCode > {
258
258
self . base . write_attribute_raw (
@@ -262,7 +262,7 @@ impl MediaPlaybackCluster {
262
262
263
263
self . run_callback ( Commands :: Stop ) ;
264
264
self . send_playback_response ( CommandStatus :: Success , cmd_req) ;
265
- Err ( IMStatusCode :: Sucess )
265
+ Err ( IMStatusCode :: Success )
266
266
}
267
267
268
268
// Start current thinbg over
@@ -275,7 +275,7 @@ impl MediaPlaybackCluster {
275
275
self . update_position ( 0 ) ?;
276
276
self . run_callback ( Commands :: StartOver ) ;
277
277
self . send_playback_response ( CommandStatus :: Success , cmd_req) ;
278
- Err ( IMStatusCode :: Sucess )
278
+ Err ( IMStatusCode :: Success )
279
279
}
280
280
281
281
fn handle_next ( & mut self , cmd_req : & mut CommandReq ) -> Result < ( ) , IMStatusCode > {
0 commit comments