action.get ("InstanceID", typeof (string), out instance_id_string);
if (instance_id_string == null ||
!int64.try_parse (instance_id_string, out instance_id)) {
- action.return_error (402, _("Invalid Args"));
+ action.return_error (402, _("Invalid argument"));
return false;
}
debug ("Seeking to %s.", target);
if (!this.player.seek (GstUtils.time_from_string (target))) {
- action.return_error (710, _("Seek failed"));
+ action.return_error (710, _("Seek mode not supported"));
return;
}
action.get ("InstanceID", typeof (string), out instance_id_string);
if (instance_id_string == null ||
!int64.try_parse (instance_id_string, out instance_id)) {
- action.return_error (402, _("Invalid Args"));
+ action.return_error (402, _("Invalid argument"));
return false;
}
string mute_str;
action.get ("DesiredMute", typeof (string), out mute_str);
if (mute_str.has_prefix ("-")) {
- action.return_error (501, _("ActionFailed"));
+ action.return_error (501, _("Action Failed"));
return;
}
string volume_str;
action.get ("DesiredVolume", typeof (string), out volume_str);
if ("." in volume_str || "," in volume_str) {
- action.return_error (501, _("ActionFailed"));
+ action.return_error (501, _("Action Failed"));
return;
}