Skip to content

Commit 78958ed

Browse files
DoumanAshardera
authored andcommitted
audioplayers: Rename player-id to playerId as it should be
1 parent bbded21 commit 78958ed

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/plugins/audioplayers/player.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void audio_player_on_media_error(struct audio_player *self, GError *error, gchar
219219
self->channel,
220220
"audio.onError",
221221
&STDMAP2(
222-
STDSTRING("player_id"),
222+
STDSTRING("playerId"),
223223
STDSTRING(self->player_id),
224224
STDSTRING("value"),
225225
STDSTRING(error_message)
@@ -251,7 +251,7 @@ void audio_player_on_position_update(struct audio_player *self) {
251251
self->channel,
252252
"audio.onCurrentPosition",
253253
&STDMAP2(
254-
STDSTRING("player_id"),
254+
STDSTRING("playerId"),
255255
STDSTRING(self->player_id),
256256
STDSTRING("value"),
257257
STDINT64(audio_player_get_position(self))
@@ -269,7 +269,7 @@ void audio_player_on_duration_update(struct audio_player *self) {
269269
self->channel,
270270
"audio.onDuration",
271271
&STDMAP2(
272-
STDSTRING("player_id"),
272+
STDSTRING("playerId"),
273273
STDSTRING(self->player_id),
274274
STDSTRING("value"),
275275
STDINT64(audio_player_get_duration(self))
@@ -288,7 +288,7 @@ void audio_player_on_seek_completed(struct audio_player *self) {
288288
self->channel,
289289
"audio.onSeekComplete",
290290
&STDMAP2(
291-
STDSTRING("player_id"),
291+
STDSTRING("playerId"),
292292
STDSTRING(self->player_id),
293293
STDSTRING("value"),
294294
STDBOOL(true)
@@ -310,7 +310,7 @@ void audio_player_on_playback_ended(struct audio_player *self) {
310310
self->channel,
311311
"audio.onComplete",
312312
&STDMAP2(
313-
STDSTRING("player_id"),
313+
STDSTRING("playerId"),
314314
STDSTRING(self->player_id),
315315
STDSTRING("value"),
316316
STDBOOL(true)

src/plugins/audioplayers/plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ static int on_local_method_call(char *channel, struct platch_obj *object, Flutte
3535
return platch_respond_illegal_arg_std(responsehandle, "Expected `arg` to be a map.");
3636
}
3737

38-
tmp = stdmap_get_str(&object->std_arg, "player_id");
38+
tmp = stdmap_get_str(&object->std_arg, "playerId");
3939
if (tmp == NULL || !STDVALUE_IS_STRING(*tmp)) {
4040
LOG_ERROR("Call missing mandatory parameter player_id.\n");
41-
return platch_respond_illegal_arg_std(responsehandle, "Expected `arg['player_id'] to be a string.");
41+
return platch_respond_illegal_arg_std(responsehandle, "Expected `arg['playerId'] to be a string.");
4242
}
4343
player_id = STDVALUE_AS_STRING(*tmp);
4444
tmp = stdmap_get_str(args, "mode");

0 commit comments

Comments
 (0)